Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Modify plan variables with Bamboo Specs

Previously, users could modify the bamboo plan variables used e.g. for the major version of the component being build. With Bamboo Specs, plans are read-only, thus you cannot do so. I understand that the proper way is to change the variable in the Specs in the repository, but are there any other options?


For example, what you can do is to run a customised build and change them. Theoretically, you can disable your automatic triggers and do only customised builds. But, as you can imagine, this would be really tedious and not very pleasant. Wouldn't it be great to have the configuration for customised run saved so you don't have to type it each run? I.e. allow the modification of plan variables for bamboo specs?


1 answer

1 accepted

1 vote
Answer accepted

We solved the issue by having the version in the VCS. The more we thought about it, the more we were sure that this is the right thing to do and even if there would be some support in Bamboo for it we would rather keep it in VCS. The benefits are:

- we can see who and when changed it

- we can checkout any commit and see the complete image (e.g. what were the variable values at that time)

- it's pushing us to automate things more (to remove the need for a such variable).

@setycz did you manage to use the "Naming versions for deployment releases" feature together with "automatic incrementing" your plan variables which you control via bamboo specs? 

I'm asking because I'm looking for a way to control the plans and deployment projects via bamboo specs but also would like to use the automatic incrementing feature so that the developers don't need to increment the RC numbers each time they're creating a deployment release. But since I'd like to reset the RC number to 1, each time the major or minor version is incremented, it seems like there is no way to make this work together with the automatic incrementing feature or am I missing something here?

Like Saif likes this

Is there a solution/workaround available?

For our new CI plan in Bamboo we are in need of modifying deploy jobs global variables outside spec for custom deploys.


I ended up in doing it probably the same way as setycz did it.

In the build plan, we're parsing the source code file containing the version numbers. Those information are then put into a file to be able to use the "bamboo variables inject" task, which then adds the version information to the build plan. The deployment job then picks up the build plan inject variables to create the release versioning.

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...

933 views 3 8
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