# Bitbucket Pipelines

## About the integration

Bitbucket Pipelines is an integrated CI/CD service built into Bitbucket. It allows you to automatically build, test, and even deploy your code based on a configuration file in your repository.

It is assumed you already have an active Bitbucket account and a repository with a working Bitbucket Pipelines configuration.

## Setting up the integration

Refer to the [general instructions on adding Bitbucket as a code integration](https://help.sleuth.io/integrations-1/code-deployment/bitbucket).

You should also add at least one [Code deployment](https://help.sleuth.io/modeling-your-deployments/code-deployments) based on a Bitbucket repository so that we may use it as a source of Bitbucket Pipelines builds.

## Configuring the integration

Once the integration is successful, find the **Impact sources** section in the sidebar and click the **+ Add** link nested under that section.

![](https://2832637360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1bR_-Od0islbiOl4G0%2Fuploads%2Fgit-blob-f83c0fa1cac2fa985c8870f5c5cc552d2788d91f%2Fimpact-sidebar.png?alt=media)

Select **Bitbucket pipelines** from the dropdown and continue by clicking **Enable and add**.

![](https://2832637360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1bR_-Od0islbiOl4G0%2Fuploads%2Fgit-blob-b2e38779c303bb784d9c2fd141d3eb257779ad94%2Fbb-pipelines-impact-build-provider.png?alt=media)

Give this build tracking instance a **name** and select which **build** or job inside a build should be used to base the impact measurements on.

![](https://2832637360-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M1bR_-Od0islbiOl4G0%2Fuploads%2Fgit-blob-06c33b2bc01bd284c24eb3fa1cec708d9a005f14%2Fbb-pipelines-impact-form.png?alt=media)

That's it! Sleuth will now start verifying your deploys health by tracking whether the selected build/job is passing or failing. Head over to the Dashboard to start seeing your data in action in the project and deploy health graphs.

## Removing the integration

Refer to the [general instructions on removing Bitbucket as a code integration](https://help.sleuth.io/integrations-1/code-deployment/bitbucket).
