Scenario Description:
1. We set up a custom variable AQRVersion (1.jpg) on the plan level which is used in conjunction with ${bamboo.buildNumber} for generating a Microsoft-style software version, $(bamboo.AQRVersion}.${bamboo.buildNumber} for passing it to the Deployment project. (2.jpg)
2. For the master(trunk) build it works just fine - the release version equals to the software version (3.jpg)
Something completely unexpected happens for branch builds (the idea is, of course to have a continuous deployments within the same project).
1. In GitHub we create a release branch "Release1.1", and Bamboo does a great job detecting it and setting up a branch build plan. In this branch, we override the AQRVersion with the new minor release bump (4.jpg)
2. The deployment project's Release Version rules remain unchanged, and are $(bamboo.AQRVersion}.${bamboo.buildNumber} (2.jpg)
3. We switch the deployment project to release from branch. (5.jpg)
4. BUG: Bamboo completely ignores the Release Version rule set up in Deployment Project, and proceeds to use "{Branch Name}, INJECTS A DASH, and then adds ${bamboo.buildNumber}" (6.jpg, 7.jpg).
Please fix it to be consistent, and not to ignore the Release Version rules when releasing automatic branches.
Bamboo 6.7.1 is still affected