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).
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 AlvarengaAtlassian Support APAC
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.
It looks like you're new here. Sign in or register to get started.