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

Lars Olsson 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

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 November 6, 2017

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events