Configure Bitbucket Tool

Set up a Bitbucket tool to enable your engineers can perform Git operations like commits, merges, tracking pull requests, etc. As a result of the Git pushes, Opsera executes continuous integration deployments. To configure a Bitbucket tool, you must first obtain a Bitbucket API token.

In this section

  • Generate Bitbucket App Password

  • Configure Bitbucket Tool

  • Set Connection for Bitbucket Tool

Generate Bitbucket App Password

To generate a Bitbucket app password:

  1. Login to your Bitbucket account, and navigate to https://bitbucket.org/account/settings/app-passwords/.

  2. Click App passwords > Create app password.

  3. Enter a label and define permissions as required.

  4. Click Create.

  5. Copy the app password to use it for the tool configuration.

Configure Bitbucket Tool

  1. Login to Opsera and navigate to Operations > Tool Registry.

  2. Click + New Tool, and click Select Tool under Bitbucket.

  3. In the Create New Tool popup, enter the required details and click Create.

  4. In the tool details, click the Connection tab and enter details the following:

  • URL: Enter the Bitbucket API URL https://api.bitbucket.org/

  • Username: Enter a unique username.

  • API Token: Enter the app password generated from Bitbucket.

  • API Type: Choose either Bitbucket Cloud or Bitbucket Server as the type.

6. Click Create.
Your Bitbucket tool will be successfully configured.

Set Connection for Bitbucket Tool

  1. Navigate to Tool Registry and open the saved Bitbucket tool.

  2. Click Connections tab to add configuration details.

  3. Provide values from Bitbucket for the URL, Username, API Token, and API Type.

  4. Click Save.