# Bitbucket Pipelines

## About the integration

The Bitbucket pipelines integration provides Sleuth with the ability to track your pipelines and associate them with your corresponding Sleuth deploys. Once configured, the integration silently monitors your deployment activity, and ties your Bitbucket pipelines with associated deployments you make to your integrated change sources by matching the git SHAs from your code repos. Sleuth then shows you a snapshot of your build state at the time of deploy.

## Setting up the integration

To set up the Sleuth Bitbucket Pipelines integration:

1. Click **Integrations** in the left sidebar, then click **CI/CD**.
2. In the *Bitbucket* tile, click **enable**.
3. You must grant Sleuth access to your Bitbucket account by clicking **Grant access** in the confirmation dialog.\
   ![](https://2832637360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1bR_-Od0islbiOl4G0%2Fuploads%2Fgit-blob-80ea3971b8840ba88b358d65d2a81dfafefec40a%2FScreenshot%202021-05-25%20at%2010.22.04.png?alt=media)
4. On successful integration, you'll see **Bitbucket enabled (Connected as \_\<Bitbucket user account>**\_\*\*) \*\*displayed in the Bitbucket Pipelines tile.

## Configuring the integration

To configure the Bitbucket Pipelines integration, you will need to set a default build server:

1. Click **Integrations** in the sidebar, then click the **Builds** tab.
2. Click the **Set default build server** dropdown.\
   ![](https://2832637360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1bR_-Od0islbiOl4G0%2Fuploads%2Fgit-blob-f8a06224b025556505996064b2dab91c1ef76512%2FScreenshot%202021-05-25%20at%2010.23.41.png?alt=media)
3. Select a project to set as the default build server. You'll need to add a code deployment to the selected project if you haven't already done so.

Now that the Bitbucket Pipelines integration is configured, you will begin seeing information displayed in the Builds tab of a [deploy](https://help.sleuth.io/modeling-your-deployments/deploy-cards).
