# Bitbucket

Currents integration with Bitbucket allows updating [Bitbucket Pipeline build status](https://developer.atlassian.com/server/bitbucket/how-tos/updating-build-status-for-commits/) with additional data from Cypress or Playwright test executions.

<figure><img src="/files/8ziVKqwtVxt7R4hWbtdz" alt=""><figcaption><p>Example of a buld status update from Currents</p></figcaption></figure>

### Enabling Bitbucket Integration

* Navigate to the project that integrates with Bitbucket
* Select **Manage Project > Integrations** and then click **+ Add Integration > BitBucket**
* Enter the details as appears on the screen, then click **Save**
  * **URL -** repository URL, make sure you have write permissions to this repository
  * **Username** - your username
  * **App Password** - Bitbucket App Password with `repo:write` access. [Create One](https://bitbucket.org/account/settings/app-passwords/)
  * **Build Name (Optional)** - the label for posting build status updates

<figure><img src="/files/2bHsdhHQlFXM73qwjISL" alt=""><figcaption><p>Bitbucket integration configuration</p></figcaption></figure>

When enabled, Current will post Cypress test results to the corresponding pipeline execution. You

can have multiple Bitbucket integrations configured for the same project. Currents will use git commit data (repo name, commit sha) for posting the results.

### Disabling Bitbucket Integration

To disable Bitbucket integration, choose the integration you want to delete in **Project > Manage Project > Integrations**, and then expand the integration card and click **Remove**.


---

# 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://docs.currents.dev/resources/integrations/bitbucket.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.
