A Bitbucket Integration is used to connect the JFrog Pipelines platform to bitbucket.org.
Creating a Bitbucket Integration
You can add this integration by following the 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. This is the username found on the account settings page (Personal Settings → Bitbucket profile settings), and not your email Id or display name.
Token -- Bitbucket token with the permissions needed to run your commands
Note
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 |
---|---|
| Bitbucket API location |
| Username used to connect to Bitbucket |
| The 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 variable | Description |
---|---|
| Bitbucket API location |
| Username used to connect to Bitbucket |
| The Token used to connect to Bitbucket |