• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with Bitbucket

Bitbucket logo

What does Opsgenie offer Bitbucket users?

Use Opsgenie's Bitbucket integration to forward certain events (like pull requests, issues and push events) to Opsgenie with detailed information. Opsgenie acts as a dispatcher for Bitbucket alerts, determines the right people to notify based on on-call schedules– notifies via email, text messages (SMS), phone calls and iOS & Android push notifications, and escalates alerts until the alert is acknowledged or closed.

Functionality of the integration

  • When a pull request is created in your repository in Bitbucket, it creates an alert in Opsgenie.

  • When an issue is created in your repository in Bitbucket, it creates an alert in Opsgenie.

  • When a push is made to your repository in Bitbucket, it creates an alert in Opsgenie.

  • When a pull request is closed in your repository in Bitbucket, it closes the alert in Opsgenie.

  • When an issue is closed in your repository in Bitbucket, it closes the alert in Opsgenie.

Add Bitbucket integration in Opsgenie

  1. Go to Settings → Integrations. Search for Bitbucket and select Add

  2. Specify who is notified for Bitbucket alerts using the Responders field. Auto-complete suggestions are provided as you type.

  3. Copy the Webhook URL.

  4. Click Save Integration.

For Free and Essentials plans, you can only add the integrations from the Team Dashboards, please use the alternative instructions given below to add this integration.

Did you know that you can also add this integration from your team dashboard? 

If you want your team to be the owner of this integration, add it from your team dashboard. Opsgenie will assign the alerts received through this integration to your team only.

To do that;

  1. Go to Teams,

  2. Find your team and select it to go to your team dashboard,

  3. From your team navigation, select Integrations,

  4. Select Add integration.


Configuration in Bitbucket

  1. In your Bitbucket repository, select the Settings from menu on the left.

  2. Select Webhooks from the left pane.

  3. Click Add webhook.

  4. Paste your Webhook URL into the "Payload URL" field.

  5. Select desired PushIssues and Pull request triggers from the list.

  6. Make sure the Active option is checked.

  7. Click Add webhook.

Find more information on Bitbucket's Webhooks feature here.

When the Webhook configuration is saved in Bitbucket, a test alert is created in Opsgenie.

 

Last modified on Aug 3, 2021
Cached at 9:05 PM on Oct 23, 2021 |

Additional Help