Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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 ${bamboo.build.working.directory})

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
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

251 views 4 6
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