Bamboo, Copy File from Server to Remote Agent.

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

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.

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 Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

187 views 12 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot