Currently this variable is set in CustomPreBuildAction.
      That's too late as one of the uses is to parameterise non-default repositories to checkout the same branch as default repository. (see BAM-11544)

      Move the code setting the variable to the same timepoint when we set other built-in variables like ${bamboo.buildNumber}

            [BAM-12900] ${bamboo.repository.branch.name} is set too late

            it doesn't work in version 5.5.0

            Andrey Shovkoplyas added a comment - it doesn't work in version 5.5.0

            Marcin Gardias added a comment - - edited

            It is fixed in 5.0 with new set of repository-related variables
            In Bamboo 5.0 you will be able to use a new variable:

            ${bamboo.planRepository.branchName}
            

            Unlike the old one, it will be avaiable during entire build process, right from the beginning.

            Marcin Gardias added a comment - - edited It is fixed in 5.0 with new set of repository-related variables In Bamboo 5.0 you will be able to use a new variable: ${bamboo.planRepository.branchName} Unlike the old one, it will be avaiable during entire build process, right from the beginning.

              Unassigned Unassigned
              mgardias Marcin Gardias
              Affected customers:
              4 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: