Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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' is set in the Project variables, but running branch name Master Edited

I am unable to get correct branch in my new branch as bamboo is not honoring the new branch instead it is substituting new branch 'ABC' for 'Master' everytime I do a build in ABC branch it substitutes the ABC branch for Master branch. I have checked the variables in ABC branch are set correctly. 

1 answer

0 votes

Hi @Aisha Ali

Bamboo should honor that the first repository of your plan matches the source branch that caused the plan branch creation. That is not the case for any other extra repositories added to the same plan. All others will be automatically set to the default branch in the repository configuration which is usually master.

It is important to notice that, for plan branches, in newer versions of Bamboo you are able to set any source branch available in your source repository. This configuration can be found at Plan configuration >> (Affected Branch) >> Repositories >> (First repository) >> Branch field.

Please confirm:

  1. The plan branch configured in the repositories tab of your plan branch is correctly pointing to the branch 'ABC'
  2. As I said before, Bamboo will honor changing the branches automatically only for the first repository in your plan (assuming you have more). Please check if the affected repository is the first one in the list or not.

Please share your findings here.

Still not working see screenshots it keeps substituting Junospace with Master branch

branch config.pngbranch variable.pnglog.png

Hi @Aisha Ali

Thank you for attaching the screenshots, they are really helpful to diagnose the issue.

Now I think I got what is happening there. 

First of all, the variable echo is read-only. It is a variable that is now deprecated, still sitting there only for compatibility purposes.

I'm not sure what is the Bamboo version you use there, but the most recent Bamboo versions have this variable bamboo.planRepository.<position>.branch. (Bamboo variables).

Please give it a try and you should see the correct branch according to what is configured in your plan branch source repository.

Suggest an answer

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

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

191 views 4 6
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