How to attach a file when triggering bamboo plan (Run Customized)

Hi,

Could you please advise me how to attach a file when triggering bamboo plan (Run Customized).

Scenario is:

We deploy bunch of applications on a WebLogic server. As part of pre-deployment preparation we generate a txt file with list of applications to be deployed. (deploy_app.txt). This is the default list file which list 50 applications.

What we would like to achieve is, when triggering bamboo plan, we would like to attach a file which subset (not all 50) of applications names (override_deploy_app.txt). If a build job finds a override file attached…job should consider override_deploy_app.txt for deployments (NOT the deploy_app.txt)

I can introduce a variable ${bamboo.varName} with comma separated values for selective deployments and do the check (if variable value is valid then override default)

But would like to know, is there a way to attach a file?

Thanks in advance

3 answers

This is not an answer to your question, I am simply posting to agree with your requirement. I too have a similar issue for which the ability to attach a file to a customized plan would seem to be the perfect solution.

Our scenario is that we would like for users to be able to submit large XML files (3-10 MB in size) that a custom build plan would then process. Submitting this XML as an attachment would appear to be the most natural mechanism. The XML itself describes a test scenario which the build infrastructure then goes out and executes.

We too considered the use of properties but the size of the data that users would be required to paste into the property value seems excesive.

0 vote

The easiest approach would be to store the file somewhere (e.g. on a http server). Then, in your build, you could download that file with wget and use for your build.

Thanks Michael for your inputs

Thanks Przemek for your suggestion, this is another way of doing it.

For my scenario, it would be easier for me to use variable

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,096 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