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**
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.