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 Alvarenga
Atlassian 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.