Bitbucket

Learn more about setting up Qodo on Bitbucket

Before you start

Integrating Qodo with Bitbucket is a straightforward process that can be applied to a single repository or scaled across multiple workspaces.

Setup typically takes just a few minutes and includes authentication and pipeline configuration.

Once connected, Qodo automatically processes your pull requests and provides reviews, summaries, and improvement suggestions as part of your Bitbucket workflow.

1. Log in to the Qodo portal

Before setting up Qodo, make sure you have created a Qodo account and signed in.arrow-up-right

2. Set up Qodo on GitHub

After signing in to your Qodo accountarrow-up-right, follow the steps below to set up Qodo on Bitbucket. Bitbucket App

This installation method is available to subscribed users only.

Visit Qodo's Plans pagearrow-up-right to learn more.

  1. Choose which workspace Qodo should have access to, then click Grant access.

Bitbucket Server

circle-check

Bitbucket Pipeline

circle-exclamation
  1. Create a pipeline file: Create a new file named bitbucket-pipelines.yml with the content below:

  1. Select your authentication type:

  • bearer = just a token (more secure, no username/password exposure).

  • basic = username + password (or app password) combined and encoded.

  1. Create a token: Based on your authentication type, create a token.

    • If your authentication type is bearer, generate an access token for your Bitbucket repository:

      1. Go to your repository's settings.

      2. Select Security then Access Tokens.

      3. Generate an access token and save it somewhere safe.

    • If your authentication type is basic, generate a base64 encoded token from your username:password combination and save it somewhere safe.

  2. Add secure variables:

    1. Go to your repository's settings.

    2. Select Pipelines.

    3. Under Repository variables, add the following variables:

      • OPENAI_API_KEY: <your key>

      • BITBUCKET.AUTH_TYPE: basic or bearer (default is bearer)

      • BITBUCKET__BEARER_TOKEN or BITBUCKET.BASIC_TOKEN: <your token> (obtained from step 3)

You’re all set. You can now start using Qodo.

circle-info

Visit our Usage Guide for next steps.

Last updated