The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use a custom string as the version number in the release name of deployment?

Lars Olsson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2017

We build binaries where the version is specified in a header file. We also have a command line tool that can extract the version string from a built binary. What is the easiest way to our custom version string as the release name of a deployment? 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 6, 2017

During the build:

1. Save extracted version string to a temporary java properties file.

2. Use Variable Inject Task to read properties from the file into Bamboo variables. Set the variable Scope to 'result'.

In your deployment project simply reference the variable in 'release naming' configuration. Sth like ${bamboo.inject.myVersion}

Lars Olsson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 6, 2017

This is exactly what I've come up with. Many Thanks, Lars

TAGS
AUG Leaders

Atlassian Community Events