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 and where to store supporting files required by Bamboo build?

I built a plan in Bamboo to deploy any changes in master branch to our test environment.

To deploy changes, we have a complex process and it requires couple of files accessible to Bamboo. Because I don't know how and where to store these files, for now, we kept those files in master branch.

If someone pushes a commit by deleting one of these two files then our build fails because Bamboo build uses these two files to deploy code into destination environment. 

These two files shouldn't be part of the repository but instead should be in a location accessible only to Bamboo build process.

Any suggestions for this?

1 answer

Any suggestion?

Simon says:

" You mentioned that the files that you require for the builds should not be in the repository. I am not sure what structure the files have but in Bamboo you could use the Variables task (, with the only limitation that there is an assumption made by this task that the structure of the file is key-value pairs.

The steps that you could use are:

1. Format the information in the files as key-value pairs to comply with the Variables task assumption mentioned above.

2. In your build plan use a script task (or a SCP task) to copy the files to the Bamboo server, unless they are alreaddy present on it somewhere on the filesystem.

3. In your Build plan use Variables tasks to read the information from the files into the Bamboo environment accessible to the build plan. You will need to use one Variables task for each file.

4. Use other types of tasks to complete your build plan.


I hope this helps.

Suggest an answer

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

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

204 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