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

Rest api to run plan of specific plan branch.

Sagar Rajput February 24, 2022

Is there any rest api to run plan of specific plan branch, I know there is api (“/queue/{projectKey}-{buildKey}?stage&executeAllStages&customRevision”) to run plan of default branch in Bamboo rest api documentation (https://docs.atlassian.com/atlassian-bamboo/REST/8.1.1). 

1 answer

1 accepted

1 vote
Answer accepted
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 24, 2022

Hello @Sagar Rajput

Welcome to Atlassian Community!

You can use the same REST endpoint to trigger a Plan branch. Bamboo adds a number to the end of the build key, for example, if the default plan key is PROJ-KEY, the first branch created after that will be PROJ-KEY0, so to trigger that branch, you just need to hit the <bamboo-url>/rest/api/latest/queue/PROJ-KEY0

You can find the Plan Branch key in the Bamboo UI by checking the address bar.

Regards,

Eduardo Alvarenga
Atlassian Support APAC

Sagar Rajput February 24, 2022

Hi @Eduardo Alvarenga , thanks for the reply, instead of getting branch key from address bar, we can get it from rest api provided in the documentation and then we can use rest end point <bamboo-url>/rest/api/latest/queue/PROJ-KEY0 to trigger a Plan branch.

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events