Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

What does the integration offer?

Use the Bitbucket integration to forward certain events (such as pull requests, issues, and push events) to Compass with detailed information. Compass 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 and Android push notifications, and escalates alerts until they are acknowledged or closed.

How does the integration work?

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

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

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

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

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

Set up the integration

Bitbucket is an API-based integration. Setting it up involves the following steps:

  • Add a Bitbucket integration in Compass

  • Configure the integration in Bitbucket

Add a Bitbucket integration

Bidirectional integrations aren’t supported in the Standard plan. All the other integrations are supported at a team level in Standard; however, for their outgoing part to work, you need to upgrade to a higher plan.

If you're using the Standard plan in Compass, you can add this integration only from your team’s operations page. Adding an integration from your team’s operations page makes your team the owner of the integration. This means Compass only assigns the alerts received through this integration to your team.

To add a Bitbucket integration in Compass, complete the following steps:

  1. Go to your team’s operations page.

  2. On the left navigation panel, select Integrations and then Add integration.

  3. Run a search and select “Bitbucket”.

  4. On the next screen, enter a name for the integration.

  5. Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.

  6. Select Continue.
    The integration is saved at this point.

  7. Expand the Steps to configure the integration section and copy the webhook URL.
    You will use this URL while configuring the integration in Bitbucket later.

  8. Select Turn on integration.
    The rules you create for the integration will work only if you turn on the integration.

Configure the integration in Bitbucket

To configure the integration in Bitbucket, complete the following steps:

  1. In your Bitbucket repository, open the Repository settings tab on the left.

  2. Select Webhooks from the left pane.

  3. Select Add webhook.

  4. Paste the webhook URL copied from Compass into URL.

  5. Select the Repository, Issue, and Pull request events from the list as required.

  6. Make sure Active is selected.

  7. Select Add webhook.
    When the Webhook configuration is saved in Bitbucket, a test alert is created in Compass.

Read more about the Bitbucket Webhooks feature.

  • No labels