I'm using Bamboo together with Bitbucket and for every release I create a new release branch, let's say 'release/v002'.
On Bamboo I need to build this branch multiple times for different release versions like v002d and v002r for development and release. The difference is that some variables (in CI these are bamboo build variables) are different and the version needs to be integrated hardcoded inside the software.
I was trying to use deployment feature on Bamboo, but taking artifacts from a plan is not useful here since I need first to get the variables and then start the build. Currently I'm using a normal branch plan and run a customized build for every release version and set the variables manually.
What I need to add is that I'm using two different git repos and for every release I need to specify which branch from the second repo should be used.
Hope someone has a similar build setup and can share their solutions!