Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to include multiple branches in the packaging version

Vijay Reddy July 28, 2023
  1. Package Version: The package version is formed by concatenating three variables:
  • ${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 


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

1 answer

0 votes
Shashank Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 1, 2023

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 to understand all the system variables which are available. 


Shashank Kumar

**please don't forget to Accept the answer if your query was answered**

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events