Hi guys,
Is there any possibility to trigger a build for a specific branch using the Bamboo REST API?
For example, I am retrieving the source branch name from Jira Cloud. What we want is to run certain tasks only when a pull request is opened for a specific branch.
Here is the Bamboo API call I'm considering:
http://bamboo.local.gde/rest/api/latest/queue/SUN-PRT?bamboo.branchName={{pullRequest.sourceBranch}}
Hello Dzmitry
Welcome to Atlassian community
1. You can use https://developer.atlassian.com/server/bamboo/rest/api-group-api/#api-api-latest-queue-projectkey-buildkey-post to trigger the build for a specific plan or plan branch
2. To run certain task, you can use conditional variables for a task and pass the branch name, refer https://confluence.atlassian.com/bamkb/conditional-tasks-in-bamboo-1077907046.html for more details.
Regards,
Shashank kumar
**please don't forget to Accept the answer if your query was answered**
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.