Bitbucket

Steps to configure Bitbucket integration for incident management, using Squadcast

Bitbucket is a Git-based source code repository hosting service.

Route detailed alerts from Bitbucket to the right users in Squadcast.

How to integrate Bitbucket with Squadcast

In Squadcast: Using Bitbucket as an Alert Source

  1. Navigate to Services -> Service Overview -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click Add.

2. Select Bitbucket. Copy the displayed Webhook URL to configure it within Bitbucket. Finish by clicking Add Alert Source -> Done.

Important:

When an alert source turns Active, it’ll show up under Configured Alert Sources. You can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.

In Bitbucket: Set up a Webhook for Squadcast

(1) Open the repository where you want to add the Webhook for Squadcast and click on Repository settings

(2) From the links on the Settings page, click the Webhooks link

(3) Select the Add webhook button to create a Webhook for the repository

(4) In the Add new webhook page, enter a Title, paste the previously copied Webhook URL from Squadcast and select the below in the Triggers field:

  • Repository push

  • Pull request created

  • Pull request merged

Click on Save

Note:

This integration supports the below events:

  • Repository push

  • Pull request created

  • Pull request merged

Note: For the event-type Issue, Integrate with our Jira-cloud as an alert source integration since Bitbucket uses Jira to create and manage issues. This way, every time you create an issue in Bitbucket, an issue for it is created in Jira, for which an incident is triggered in Squadcast.

That is it, you are good to go!

  • Every time a Push or Pull Request event occurs in Bitbucket, an incident would be created in Squadcast.

  • When a Pull Request is merged in Bitbucket, the corresponding incident in Squadcast will be automatically resolved.

Have any questions? Ask the community.

Last updated