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

Your Points Tracker
  • 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
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?
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 to increment version when my plan executes?

I have a c# library which gets build and published to our package repository through a bamboo plan each time we update it in Bitbucket.

I have a plan level variable "version = 1.0.0".

I want to be able to update the value of this variable every time the plan runs. It should - 

  • Pick up the existing version of library(e.g., 1.0.0 or 1.0.1 etc...)
  • Increment it by 1(e.g., 1.0.2)
  • And then this variable should be available for next task in the plan which is responsible for publishing the library to package repository

I have the task type -  "Version Variable Incrementer" but there is not enough documentation(that I can find) on how to use that.

Please help. Thanks.

1 answer

Hi Arpan! How are you doing?

We did something similar to this using the variable ${bamboo.buildNumber}.

You could still have a variable called version with value 1.0 and pass "${bamboo.version}.${bamboo.buildNumber}" as a parameter to your tasks.

As this value will be the same during the entire build, you can use this expression anywhere you want, so you would't have to care about passing it between tasks.

Hope this helps!


Suggest an answer

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

Bamboo Data Center - Early Access Program

G’day Bamboo customers, The wait is almost over! We are in the final stages of work on the first release of Bamboo Data Center, our self-managed enterprise offering of Bamboo. This Data Center offe...

987 views 0 16
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