I would like to include the bamboo build number in my plugin's version string. What is the best way of doing this?
I would like my version to read, for example, v1.0.0#12, where this is version 1.0.0 and sequential build 12.
Community moderators have prevented the ability to post new answers.
The documentation says to use ${env.bambooBuildNumber} however you really want${bambooBuildNumber}
I create JAC https://jira.atlassian.com/browse/BAM-12042 . You may want to vote on this to bring more visability to development.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bamboo provides a number of pre-defined system variables that you can use in your build configuration. You can find all available variables in the documentation under:
http://confluence.atlassian.com/display/BAMBOO/Using+Global%2C+Plan+or+Build-specific+Variables
To get the build number, you can simply use the following variable: {$bamboo.buildNumber}
To get the version, you would simply specify a Plan variable and use it along the build variable above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this does not work in maven!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.