It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using a build variable as the Branch name of a Repository

I have a multi-repository build for which I'm trying to setup plan branches.

Until is implemented, this is going to be somewhat difficult. However, it has been suggested before to use a build variable to "parameterize" the branch names of all non-default repositories in a build plan.

I have tried using this approach by using ${} in the Branch field of the Repository configuration of all non-default repositories in my build plan. Unfortunately, this is giving me the following error:

(java.lang.RuntimeException : com.atlassian.bamboo.repository.InvalidRepositoryException: Cannot determine head revision of 'ssh://9a161dbd-6f8b-4af6-ba39-8d4a883bffea@' on branch '${}'. Branch has probably been removed.)

Any idea how I can make this work?



2 answers

1 accepted

1 vote
Answer accepted


I'm afraid you've found a bug. This variable is set too late in the build process to be useful as workaround to BAM-11544.

Please vote on this bug report:

It will work if you define your own plan variable, but sadly, this requires you to override it manually on each branch.

Is there any solution to this problem? I am still getting the same error

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Cannot save a repository using Chrome v83 and other Chromium based browsers such as Edge

Hello Bamboo Community, I'm Jey from Bamboo Support team. If you have upgraded your Chrome browser to version 83 recently, it is observed that the save operation just spins and never completes w...

395 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you