Bitbucket Data Center

Learn more on how to setup Qodo Merge on Bitbucket Data Center.

Before you start

Setting up Qodo Merge for Bitbucket Data Center brings automated PR intelligence to your self-hosted environment.

You can install it for a single repository or expand it across multiple projects as needed.

Expect setup to take a few minutes, including creating tokens, configuring the service, and setting up webhooks.

Once complete, Qodo Merge will process pull requests and deliver actionable output—such as code reviews and insights—directly to your PRs.


1. Log In to Qodo Portal

Before setting up Qodo Merge, make sure to create a Qodo account and sign in.

Once you've signed in to the Qodo Portal, you can follow the Qodo Merge installation guide straight from the portal, or continue reading here.

2. Setup Qodo Merge

Once you've signed in to your Qodo account, follow the instructions in the Qodo Portal or below to setup Qodo Merge on Bitbucket Data Center.

Bitbucket Data Center

  1. Login into your on-prem instance of Bitbucket with your service account username and password.

  2. Go to Manage account then choose HTTP Access tokens. Click Create Token. Generate a token and save it somewhere safe.

  3. Add your token to your secret.toml file under the bitbucket_server section:

[bitbucket_server]
bearer_token = "<your key>"

To run Qodo Merge in the CLI:

Modify configuration.toml:

git_provider="bitbucket_server"

Pass the Pull request URL:

python cli.py --pr_url https://git.onpreminstanceofbitbucket.com/projects/PROJECT/repos/REPO/pull-requests/1 review

To run Qodo Merge as a service:

You will need to run Qodo Merge as a webhook.

  1. Build the docker image:

docker build . -t codiumai/pr-agent:bitbucket_server_webhook --target bitbucket_server_webhook -f docker/Dockerfile
docker push codiumai/pr-agent:bitbucket_server_webhook  # Push to your Docker repository
  1. Navigate to your project or repository's settings, then choose Webhooks and Create Webhook.

  2. Fill in the name and URL. The URL should end with /webhook, for example: https://domain.com/webhook.

  3. Under Authentication, choose None.

  4. Tick the Pull Request Opened checkbox.

You’re all set! Start using Qodo Merge.

Visit our usage guide for next steps.

Last updated

Was this helpful?