> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getunblocked.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Bitbucket Pipelines

> Connecting Bitbucket Pipelines to Unblocked

To connect Bitbucket Pipelines to Unblocked, follow these steps:

<Steps>
  <Step title="Add CI Data Source">
    In the left sidebar, click on **Settings** and then **Continuous Integration**.
    Then click on **Add CI Provider**.
  </Step>

  <Step title="Connect Bitbucket Pipelines">
    Click on the **Bitbucket Pipelines** tile. <img src="https://mintcdn.com/unblocked/yVsbHSyeiIZi1Xp1/img/ci/Data-Sources-CI-Integrations.png?fit=max&auto=format&n=yVsbHSyeiIZi1Xp1&q=85&s=e6a299769b0a789f5a462d89d323603a" alt="CI Add" width="2880" height="1820" data-path="img/ci/Data-Sources-CI-Integrations.png" />
  </Step>

  <Step title="Enable CI Failure Agent">
    Click **Select Repositories** to choose the repositories
    you want to enable CI Failure Agent on. <img src="https://mintcdn.com/unblocked/yVsbHSyeiIZi1Xp1/img/ci/Bitbucket-Pipelines-selectRepos.png?fit=max&auto=format&n=yVsbHSyeiIZi1Xp1&q=85&s=605643ea593a045a5718a96d583714ae" alt="CI Configure Bitbucket Pipelines" width="2880" height="1820" data-path="img/ci/Bitbucket-Pipelines-selectRepos.png" />
  </Step>

  <Step title="Select Repositories">
    Toggle the repositories you want to enable by selecting them.
  </Step>

  <Step title="Create a Bot Account">
    CI reports from the CI Failure Agent need to be posted on behalf of a Bitbucket user account. We recommend
    creating an Unblocked bot account for this specific purpose.

    <Note>
      <h4>Already have a bot account?</h4>

      <p>
        Some teams already have a bot account they use for posting automated messages. If you already have a bot account that you can repurpose for posting CI
        analysis reports, select it and skip to the next step.
      </p>
    </Note>

    * [Create a new account](https://id.atlassian.com/signup?application=bitbucket\&continue=https%3A%2F%2Fbitbucket.org\&prompt=select_account) in Bitbucket with the following information:
      * **Name:** Unblocked
      * **Avatar:** download and use the Unblocked logo below

            <img src="https://mintcdn.com/unblocked/soZi90zJ9_abJhu-/img/Unblocked-logo-with-bg.png?fit=max&auto=format&n=soZi90zJ9_abJhu-&q=85&s=4254a1a1add3321511dfe55c842cf890" alt="Unblocked logo" width="160" noZoom data-path="img/Unblocked-logo-with-bg.png" />

            <a href="/img/Unblocked-logo-with-bg.png" download="Unblocked-logo.png">
              Download PNG
            </a>

    * [Switch accounts](https://id.atlassian.com/login/select-account?application=bitbucket\&continue=https%3A%2F%2Fbitbucket.org) and sign in to your Bitbucket Workspace as a Workspace admin.

    * Click the gear icon in the top right of the navigation bar, and select **User Management**.

    * Invite your new bot user to your workspace.

    * Accept the email invitation that was sent to your bot account.
  </Step>

  <Step title="Select your Bot Account">
    Search for the Bot Account you just created and select it. You may be required
    to authorize this account with Unblocked. <img src="https://mintcdn.com/unblocked/yVsbHSyeiIZi1Xp1/img/ci/Bitbucket-Pipelines-selectBotAccount.png?fit=max&auto=format&n=yVsbHSyeiIZi1Xp1&q=85&s=66ee227de48771108c664eff93c10661" alt="CI Configure Bitbucket Pipelines" width="2880" height="1820" data-path="img/ci/Bitbucket-Pipelines-selectBotAccount.png" />
  </Step>

  <Step title="Done">
    Click **Save Settings** to apply your changes. Now Unblocked will analyze CI
    failures in the selected repositories and post reports to pull requests.
  </Step>
</Steps>
