Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I attach or upload a file for a plan to use when I trigger the plan manually on Bamboo 6.9.1

I have a plan that I would like to be able to either accept a file as a parameter, or in the plan browse to a location and select a file to be uploaded.  My plan will then move the file to a specific location and rename it.  Can anyone suggest a method that does not require a plugin (unless the plugin is free) that will accomplish this in Bamboo.  This is fairly easy to do in Jenkins.

1 answer

0 votes

Hi @Jim Schwarz

The Bamboo SCP task does only upload from Bamboo to other servers/locations. There is an old request though to add also the download behavior to it.

I'm afraid this was not prioritized due to the low number of votes given the time this is already open.

Usually, we want a build to be predictable/replicable and therefore the data processed in it should come from a versioned source (repository). In your case you want the source to be external which will make a build associated with a repository to have multiple possible results for the same changeset of the associated source repository.

The best option I see in this case is using a script task with the SCP command to copy the file you want to the Bamboo build working directory (with this variable ${})

In case you want to control this behavior with a custom variable, then will need to make sure your script task checks this variable and decide what to do next. The variable could bring the path to the file you want to copy in. e.g. The default value of the variable could tell the script task that no file needs to be copied.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

66 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you