> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/ai-sre/3.0/ai-sre-for-administrators/set-up-alert-management/alerts/integrations/cicd/bitbucket.md).

# Bitbucket Integration

Configure Bitbucket integration to receive repository event notifications in Harness AI SRE.

### Overview <a href="#overview" id="overview"></a>

Bitbucket provides:

* **Repository events:** Push, pull request, and branch notifications.
* **Pipeline events:** Bitbucket Pipelines status and failures.
* **Deployment events:** Track deployment status.
* **Code review:** Monitor pull request activity.
* **Build status:** Receive build success and failure notifications.

***

### Set up Bitbucket integration <a href="#set-up-bitbucket-integration" id="set-up-bitbucket-integration"></a>

Complete these steps to connect Bitbucket to Harness AI SRE:

1. Navigate to **Integrations** in the main menu.
2. Click **New Integration**.
3. Select **Bitbucket** from the template options.
4. Enter a name and generate an ID.
5. Copy the generated webhook URL.
6. In your Bitbucket repository settings, add a webhook pointing to the copied URL.
7. Configure payload mapping to match Bitbucket event fields to Harness AI SRE fields.
8. Set up route alerts to route and filter incoming Bitbucket events.

***

### Next steps <a href="#next-steps" id="next-steps"></a>

* Go to [Route Alerts](/ai-sre/ai-sre-for-administrators/set-up-alert-management/alert-rules/overview.md) to route Bitbucket alerts.
* Go to [Ingest Alerts Overview](/ai-sre/ai-sre-for-administrators/set-up-alert-management/webhooks/templates/overview.md) to view other integrations.
