Adding a Bitbucket webhook

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.

  1. Go to the Code tab of your app’s page and in the INCOMING WEBHOOKS menu, click SETUP MANUALLY.

  2. Select Bitbucket from the dropdown menu.

    Adding a Bitbucket webhook
  3. Copy the webhook URL for the selected service.

  4. Navigate to your Bitbucket repository and select Settings.

    Adding a Bitbucket webhook
  5. Select Webhooks from the left.

    Adding a Bitbucket webhook
  6. Select Add Webhook.

    Adding a Bitbucket webhook
  7. Paste the Bitbucket Webhook URL from Bitrise to the URL and add a Title.

    Adding a Bitbucket webhook
  8. Select Choose from a full list of triggers.

    Adding a Bitbucket webhook
  9. Select Repository Push and Pull Request Created and Updated triggers. After you are ready press the Save button and you are ready to roll!

    Adding a Bitbucket webhook