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

Your Points Tracker
Challenges
Leaderboard
  • 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
Recognition
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?
Kudos
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

How do you customize the branch used with a linked repository in bamboo?

Using Bamboo 5.6, I setup a Linked Repository to Stash. However, it made me pick a branch. We have multiple release branches and I create 1 build plan PER release branch. However, I can't share the same linked repository in each of these build plans because the branch is hard coded to it. So I've had to add 1 linked repository for each different branch.

Is there a way to configure the branch used from a linked repository at the plan configuration level?

1 answer

0 votes

Is there a reason why you create a separate plan for each release branch? Have you considered using Plan Branches?

If for some reason Plan Branches are not an option (ie when release branches require different plan configuration) you can do the following:

  • create new Plan for your release branch connecting to the same linked repository
  • disable the plan
  • go to Plan configuration / Branches and create a branch that will match your release branch
  • make the branch enabled

 

Yes I originally had things setup that way but due to the inability to manually alter the bamboo build number per branch it was not sustainable based on our branching and release model. I'd go into more detail but it's not relevant to my question. I'd like to see an answer to my original question with regards to choosing a branch per plan using the same linked repository.

It is not possible to choose a different branch when using a linked repository.

That really defeats the purpose of them IMHO. Their main role is to share repositories between plans but yet it forces the plan's branch to be what is linked in the repository. Just one more absolutely useless feature behavior in bamboo. Strange that it is the way it is when their other products make so much more sense.

Can the branches be enabled and function when the plan itself is disabled?

I see the main reason for linked repos is to hide credentials from plan creators.

I think a branch plan should be able to select its branch on the linked repo.

Like # people like this

Third that Robert and Warren, I took the repository from one plan that I want to reuse in another plan and made it linked for the express purpose of stated above, but cannot change the BRANCH!!!!!

Let's put it this way, it's a "Linked REPOSITORY", not a "Linked BRANCH"!  

If this is by design, it should at least be properly named to be descriptive!

(number of exclamation marks in my response is proportional to amount of time wasted finding the out you cannot change branches)

Like # people like this

You can! Just use variables. Specify some variable like ${bamboo.branch} as branch name in the linked repository and override variable branch in your plan configuration (NOTE: prefix bamboo. is required...)

Like Jorge Suarez likes this

Trigger won't work then... Right?

Suggest an answer

Log in or Sign up to answer
TAGS
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 ...

190 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