Hi,
In Bamboo's SCP Task Configuration, I can set the task up to copy files from a local path to the remote server. However is going in the opposite direction possible? I would like to copy a file from the remote server to the Bamboo machine's local path.
Community moderators have prevented the ability to post new answers.
i still wonder why the Bamboo SCP/SSH Task cant do both, copy to server and copy from server.
would be such an easy task .....
Hi Steven,
Yes, it is possible. You can use a Script task and write the command line as usual:
/usr/bin/scp some.remote.host.com:/path/to/source_file.tar bamboo_server_hostname:/path/to/target_filename.tar
For this to work, you need to generate SSH key on the source_host and put the id_rsa.pub contents into .ssh/authorized_keys on the bamboo_server_hostname for the SSH Public Key Authentication to work.
You might also find Bamboo+variables useful for some variables or paths, e.g. ${bamboo.build.working.directory}
Regards,
Radek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you sure that this is the right way? For example, if I run PHPUnit test on the remote agent, and would like to view the results (based on the result.xml) in Bamboo I have to manually copy this files back to bamboo?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
2018 now. :)
Yeah, it's really dumb that the SCP task is so limited. It can also be very fiddly using the SSH task to do this if you were relying on password authentication for the copy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.