bamboo scp upload task for directory

Moon Choi May 28, 2013

I want to upload a folder to remote server.

But the local directory structure is copied to the server.

For example,

local: target/batch

server : /home/test

result on server : /home/test/target/batch

required : /home/test/batch

I tried target/batch/**/*.*, but same thing happened.

2 answers

0 votes
Moon Choi June 24, 2013

The local path seems fine as the files inside are copied correctyl.

I used ssh task instead to resolve the problem.

adammiles December 1, 2014

@Moon Choi I'm having the same issue, what was your implementation to get it working with ssh task?

0 votes
ssetayeshfar
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.
June 19, 2013

Hi Moon,

Based on this document:

https://confluence.atlassian.com/display/BAMBOO/Using+the+SCP+task+in+Bamboo

the local path should be relative to the build directory/working directory of your build. For example, something your build has produced or you have checked into version control. You can find more details on this in the comments sections of the above link.

Hope this helps!

Best,

Sepideh

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events