Bamboo SCP Task and subdirectories

We're running Bamboo 5.6.2.

Using the SCP Task

local path solr/conf/*

remote path /usr/local/solr/conf

When the local path only contains files, such as schema.xml, solr.xml, then those files are copied into the remote path.

For example

/usr/local/solr/conf/schema.xml

/usr/local/solr/conf/solr.xml

But if the local path also contains a subdirectory, such as velocity/config.xml, then then entire local path is copied to the remote path

For example

/usr/local/solr/conf/solr/conf/schema.xml

/usr/local/solr/conf/solr/conf/solr.xml

/usr/local/solr/conf/solr/conf/velocity/config.xml

Not what I expected or want.

Is there any way to not include the local path when copying to the remote path?

5 answers

Are you copying artifacts from a particular build or files that are located in a specific directory in your build server?

The job consists of two tasks, Source Code Checkout (git) and SCP. SCP is copying files from the Source Code Checkout task, so the files come from the build. Strictly speaking, I thought artifacts came from other stages, so maybe they aren't artifacts.

I have the same problem and I can't find any solution. How did you manage that? Thanks

I have the same problem with copying files from an artifact: https://answers.atlassian.com/questions/25137120

I just moved to using command and if the copy task is to complex I write a bash script for it ;)

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,078 views 0 5
Read article

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