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
Community moderators have prevented the ability to post new answers.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.