Bitbucket
Bitbucket is a Git-based source code repository hosting service.
Route detailed alerts from Bitbucket to the right users in Incident Response.
How to integrate Bitbucket with Incident Response
In Incident Response: Using Bitbucket as an Alert Source
-
Navigate to Services -> Service Overview -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click Add.
-
Select Bitbucket. Copy the displayed Webhook URL to configure it within Bitbucket. Finish by clicking Add Alert Source -> Done.
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 Incident Response
-
Open the repository where you want to add the Webhook for Incident Response and click on Repository settings
-
From the links on the Settings page, click the Webhooks link
-
Select the Add webhook button to create a Webhook for the repository
-
In the Add new webhook page, enter a Title, paste the previously copied Webhook URL from Incident Response 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 Incident Response.
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 Incident Response.
-
When a Pull Request is merged in Bitbucket, the corresponding incident in Incident Response will be automatically resolved.