How to Connect Company Codebase to Bitbucket Data Center

Connect all Qodo tools, and specifically Company Codebase, to your Bitbucket data center (BBDC).

Prerequisites

  1. Company Codebase deployment

  2. BBDC instance (Customer). Must be version 8.X.X (does not work on 9.X.X).

    • Make sure app uploading is enabled: Go to settings, then select Manage apps. Make sure Upload app link is visible.

Upload app link is visible on the right side

To enable app installation in the bitbucket.properties file, set the property: upm.plugin.upload.enabled=true.

App Installation

  1. Download the Qodo app file: Please contact Qodo Support for the qodo-app-bbdc file.

  2. Install the Qodo App: Go to settings, then select Manage apps. Click the Upload app link and choose to Select jar file. Select the Qodo app file you've downloaded previously.

  3. Define Access token:

    1. Login to BBDC as system administrator.

    2. Click your profile picture then choose Manage account. Select http access token then add token.

    3. Give the token a meaningful name.

    4. Under Project permissions, choose the Project write permissions.

    5. Under Repository permissions, choose the Repository write (inherited) permissions.

    6. Copy the token and save it for later.

    Adding token to Bitbucket data center
  4. Check out your Qodo app: Your Qodo app is ready. You can see it at the Administration section.

    Each Qodo tool has a configuration tab in the app. Use the connection section to define the URL of your Qodo tool. Use the Repositories section to select the repositories integrated into your Company Codebase.

    Qodo Integration Settings

Set Company Codebase in BBDC

  1. Contact Qodo Devops team to create a RAG Indexer installation.

  2. Update Company Codebase indexer configuration and settings:

[config]
git_provider = "bitbucket_data_center"

[bitbucket_data_center]
base_url = "https://your-bbdc-instance.com" # url of your bbdc instance
webhook_secret = "mysecret" # the secret you wrote in the Qodo BBDC app for the tool. Currently Company Codebase does not support any webhooks, so this setting is optional
bearer_token = "BBDC-mytoken" # the token you created in the BBDC instance for Qodo
  1. Go to the Company Codebases tab of Qodo app in BBDC

    1. Select the repositories you want to be indexed

    2. Currently Company Codebase does not support any Webhooks, so no need to setup the Connections section.

Last updated

Was this helpful?