To have Bitrise automatically start a build every time you push code into your repository, you can set up a webhook at your code hosting service which will automatically trigger a build on Bitrise with the code you push to your repository.
You can register a webhook either automatically or manually. This guide walks you through the process of manually registering a webhook. Read more about automatic webhook registration.
Get the webhook URL for Bitbucket ⚓
- Go to the Code tab of your app’s page and in the INCOMING WEBHOOKS menu, click SETUP MANUALLY.
Select Bitbucket from the dropdown menu.
- Copy the webhook URL for the selected service.
Setup webhook on Bitbucket ⚓
Navigate to your Bitbucket repository and select Settings.
Select Webhooks from the left.
Select Add Webhook.
Paste the Bitbucket Webhook URL from Bitrise to the URL and add a Title.
Select Choose from a full list of triggers.
Select Repository Push and Pull Request Created and Updated triggers. After you are ready press the Save button and you are ready to roll!