# 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](/sleuth-dora/integrations-1/code-deployment/bitbucket.md).

You should also add at least one [Code deployment](/sleuth-dora/modeling-your-deployments/code-deployments.md) 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.

![](/files/-MlEpxSKbdLW2cNWeObr)

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

![](/files/-MlU34LWJDjAgYTjdA6C)

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.

![](/files/-MlU4ypuitBX86D9BHp0)

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](/sleuth-dora/integrations-1/code-deployment/bitbucket.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sleuth.io/sleuth-dora/integrations-1/impact-sources/build-trackers/bitbucket-pipelines.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
