DevOps / Bamboo: Continuous Integration & Deployment Interview Questions
How do you trigger Bamboo builds from Bitbucket webhooks?
Rather than having Bamboo repeatedly poll the repository for changes, Bitbucket can push a webhook notification to Bamboo the moment a commit lands, and Bamboo starts the build immediately.
- In the plan's trigger configuration, add a "Repository triggered" (webhook-based) trigger and select the linked repository.
- If the repository is Bitbucket Server/Data Center linked via an application link, Bamboo can register the webhook automatically; for other Git hosts it's added manually.
- For a manual setup, Bitbucket's repository settings get a webhook pointed at the Bamboo endpoint, for example:
POST https://bamboo.example.com/rest/api/latest/queue/PROJ-PLAN Content-Type: application/json
Once configured, a push shows up as a queued build within seconds instead of waiting for the next polling interval, which is the main reason webhook triggers have largely replaced polling triggers in current setups.
More Related questions...