> For the complete documentation index, see [llms.txt](https://help.sleuth.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sleuth.io/sleuth-dora/integrations-1/impact-sources/build-trackers/bitbucket-pipelines.md).

# 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.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
