Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bamboo, Copy File from Server to Remote Agent.

Jason Huntley
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 3, 2013

Is there a know or preferred method, via API for example, for copying a speicific file from the Bamboo server to a given remote agent?

I'm trying to provide a workaround for using private keys with remote agents. Only I would like for Bamboo to distribute the private key currently in use.

1 answer

0 votes
Gretchen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 12, 2013

It seems like it would be possible using ssh or alternately using cscript or wscript. I've done some stuff like that before (to recycle servers on a windows box for example). The only issue with it is that some of the scripts go off and never return (forking processes). (Not an editorial comment btw).

You would have to push the key file to the server using robocopy (or the like) or scp then execute the command on the remote server to import the file into the specific java keyfile using keytool I think. Let me know if you want more info along these lines.

sparshgu April 11, 2016

Any Idea if its not possible still using the Java API? The same is easily achievable in Jenkins.

Could you share some of your snippets,in any case?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events