Unify Integrations
Logo
Bitbucket

Bitbucket

Logo

10 Mins READ

Bitbucket is a Git-based source code management solution designed for teams to collaborate on code, manage repositories, and streamline development workflows. The Bitbucket - Private Cloud connector works with your self-hosted Bitbucket Server and its REST APIs, so you can use your repositories, pull requests, projects and users in automations.

Authentication

Integrating your application with Bitbucket Server enables secure access to repositories, projects, users, and other resources through Bitbucket REST APIs. Before starting, ensure you have the following information:

  • Connection name: Choose a meaningful name for your connection. This name helps identify the connection within your application or integration settings, such as MyAppBitBucketIntegration.

  • Bitbucket hostname: Enter the host and port (optional) of your Bitbucket server. For example, if the URL in the browser is http://host:port/context/rest/api-name/api-version, the hostname is http://host:port.

  • Authentication type: Select the authentication method you want to use. Supported authentication types:

  • Access token

  • Basic

Access Token Based:

  1. Log in to your Bitbucket Server.

  2. Click your profile picture, then go to Manage account → HTTP access tokens.

  3. Click Create token, choose the permissions you need, and create the token. Copy it and paste it into the Access token field of the connection form. Keep the token secure, as it grants access to your Bitbucket Server.

    image1 8.png
    image1 8.png

Basic Authentication:

  1. Log in to your Bitbucket Server.

  2. Use your Bitbucket username in the Username field.

  3. Use your Bitbucket account password in the Password field.

Actions

Actions

Description

Add pull request comment

Adds a comment to a pull request in Bitbucket

Create pull request

Creates a pull request in a repository in Bitbucket

Delete pull request

Deletes a pull request by ID in a repository in Bitbucket

Get file content

Gets file content in a repository in Bitbucket

Get pull request

Gets a pull request by ID in a repository in Bitbucket

Get pull request comment

Gets a comment by ID in a pull request in Bitbucket

Get raw content of a file

Gets raw content of a file in a repository in Bitbucket

List files

Lists files in a repository in Bitbucket

List files in a path

Lists files in a path in Bitbucket

List global users

Lists users with a global permission in Bitbucket

List project users

Lists users with permission to a project in Bitbucket

List projects

Lists projects in Bitbucket

List pull requests

Lists pull requests in a repository in Bitbucket

List repositories

Lists repositories in a project in Bitbucket

List repository users

Lists users with permission to a repository in Bitbucket

Update pull request

Updates a pull request by ID in a repository in Bitbucket

Update pull request comment

Updates a comment by ID on a pull request in Bitbucket