Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,584
Community Members
 
Community Events
165
Community Groups

can the value of bamboo.planRepository.<position>.branch be changed?

The bamboo plan has more Linked repositories. The default branch for repositories is develop branch.  I would like to reuse this plan to verify the changes in other branches (e.g. feature/bug branches). The first branch (bamboo.planRepository.1..branch) is updated automatically by bamboo, but the rest keep the original configuration (default branch). I would like to update the branch for the rest of linked repositories by setting bamboo.planRepository.<position>.branch variable. I can set manually the bamboo plan that was created for a specific branch.

I have tried to set the bamboo.planRepository.<position>.branch by using REST API, but without success.

curl -u <user>:<password> -X POST "https://<bamboo_name>/rest/api/latest/queue/<bamboo_plankey>/?\

.....
bamboo.variable.bamboo.planRepository.1.branch=<new_name1>&\

bamboo.variable.bamboo.planRepository.2.branch=<new_name2>&\

.....

 

I could manage to change the other custom variables defined in bamboo plan.

 

It seems that the bamboo.planRepository.<position>.branch is read only. Is there any other way to dynamically select the branches names ?

1 answer

Hello dear support team,

The support on UI was added to override branch of a linked repository (see more at BAM-16101), but we cannot do it by using REST API.

I hope this will help you to provide a solution for this issue.

Suggest an answer

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

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

929 views 3 8
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