${bamboo.relVer}
: The release version.${bamboo.planRepository.1.branchName}
: The name of the branch used in the build.${bamboo.buildNumber}
: The build number generated by Bamboo.Here I've a requirement to use multiple branches instead of just one branch, so that I've tried
${bamboo.relVer}-*.${bamboo.buildNumber}
With this version formation, bamboo.relVer
represents the release version, and bamboo.buildNumber
represents the build number generated by Bamboo. The *
wildcard will be replaced by the branch name used in the build.
But it's not working, so is there any way that I can include multiple branches
Hello Vijay,
Welcome to Atlassian community
I understand you are trying to add multiple branches to the release version under deployment projects.
First thing to understand is that you can only fetch all the branches names which are added under repository tab of the plan ( for which the build was run )
Currently you are fetching bamboo.planRepository.1.branchName, this will fetch the 1st repository which is linked to this plan, to fetch the other repo details you can replace 1 with 2 , 3 etc where 2 3 is the order of the repository, see below
To achieve what you are looking for you have to use the same variable which you have used bamboo.planRepository.<position>.branchName where position is the order of the repository in the screenshot above.
${bamboo.planRepository.1.branchName} ${bamboo.planRepository.2.branchName}
You can read https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html to understand all the system variables which are available.
Regards,
Shashank Kumar
**please don't forget to Accept the answer if your query was answered**
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.