Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,457,480
Community Members
 
Community Events
176
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

Atlassian Community Events