Bitbucket Integration is used to connect the JFrog Pipelines platform to bitbucket.org

Creating an Integration

You can add this integration by following steps on the Managing Pipelines Integrations page.

Here is the information you need to create this integration:

  • Name -- choose a friendly name for the integration
  • URL -- Bitbucket API endpoint. This is already hard-coded to https://api.bitbucket.org
  • User Name -- Username to connect to Bitbucket
  • Token -- Bitbucket token with the permissions needed to run your commands

Bitbucket integration requires the following permissions:

  • Account: Read
  • Pull requests: Read
  • Workspace membership: Read
  • Projects: Read
  • Repositories: Admin
  • Webhooks: Read and Write

Usage

The Bitbucket integration can be used with the GitRepo resource.

The Bitbucket integration can also be added directly to a step in the integrations section.

Default Environment Variables

When you create a resource with this integration, and create a step that uses it in the inputResources section, a set of environment variables is automatically made available.

Environment variable

Description

res_<resource-name>_gitProvider_urlBitbucket API location
res_<resource-name>_gitProvider_usernameUsername used to connect to Bitbucket
res_<resource-name>_gitProvider_tokenThe token used to connect to Bitbucket


When you add this integration directly to a step, a set of environment variables is automatically made available.

Environment variableDescription
int_<integration-name>_urlBitbucket API location
int_<integration-name>_usernameUsername used to connect to Bitbucket
int_<integration-name>_tokenThe Token used to connect to Bitbucket