Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SCP task configuration

Giovanni Gulino July 8, 2015

I'm having difficulties configuring scp task in bamboo and copy the files I want.

My build outputs some files and dirs in `dist` subfolder. I need to copy all content in `dist` subfolder to remote machine. I've tried various configuration for the scp task but I always get the files copied into `remote_path/dist/` instead of `remote_path`.

How can copy just the content of the `dist` folder without the parent? I've also tried creating artifacts but nothing has changed

Thanks

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 8, 2015

Hello Giovanni,

Thank you for your question.

In order to accomplish that, I would suggest you on running a "Script" task with SCP command instead of using the "SCP" task available in Bamboo.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Supports

Giovanni Gulino July 9, 2015

Thanks it works

Josh February 5, 2018

Are you saying to create a "Script" task and use the SCP command with the username and password inline? Are there any security concerns with doing this?

 

UPDATE: I kept the SCP task and followed with an SSH task to move the files out of the subdirectory.

TAGS
AUG Leaders

Atlassian Community Events