Connect with Bitbucket Server

Connecting with Bitbucket Server grants buddybuild access to your repository so that it can build your app when you push code to your repository. Connecting also grants buddybuild API access to manage webhooks for you, generate commit status, enables the pull request flow, synchronizes access control for team management and more.

Each member of your team that uses buddybuild should go through this guide to connect with Bitbucket Server. This is encouraged so that you can take advantage of team management features.

Prerequisite: First make sure you have created an account with buddybuild by signing up with GitHub, Bitbucket, GitLab or by email.


Buddybuild rejects connecting to repositories via HTTPS that are provisioned with self-signed certificates.

Using a self-signed certificate could make it possible for someone to spoof your repository and inject malicious code into your builds.

Step 1: Install the buddybuild add-on from the Atlassian Marketplace

The following one-time setup must be done as a Bitbucket Server system administrator.

From the Bitbucket Server dashboard click on the Administration setting cog.

A Bitbucket project page, clicking on the Settings button

Under the Add-ons section, select Find new add-ons.

The Bitbucket Add-ons screen, with Find new add-ons highlighted

Next, search for buddybuild and click Install.

The Bitbucket Find new add-ons screen, with the buddybuild search result displayed

The add-on should take a few seconds to install. Once the installation is complete, you’ll see the following message.

The Bitbucket Installed and ready to go! dialog

You can choose to remove the installation at any time by clicking Uninstall on the Manage add-ons page.

Configuration for the buddybuild add-on in Bitbucket

Step 2: Generate your personal access token

Visit the buddybuild plugin settings page by clicking on buddybuild in the left hand navigation. (You may need to refresh the page for this link to appear if you have just installed the plugin).

The Bitbucket settings screen, focused on the buddybuild add-on menu item

Under the section Getting started, click on Connect Personal Access Token.

The buddybuild add-on screen in Bitbucket, clicking on the Generate token button

Next, generate your personal access token by clicking on Generate token.

The buddybuild add-on screen in Bitbucket, clicking on the Generate token button

Copy your personal access token and follow step 3 below to connect your Bitbucket Server repository with buddybuild.

The buddybuild add-on screen in Bitbucket, copying the personal access token

Step 3: Connect your Bitbucket Server account

To connect your Bitbucket Server account, launch the buddybuild dashboard and Add a New App.

The buddybuild dashboard, with the app dropdown menu open

The Connect another source code provider panel

Select Bitbucket Server.

The Where is your source code screen

Next, enter your Bitbucket Server endpoint and the Personal Access token you generated in step 2, and click Connect your Bitbucket Server repository.


More about your Bitbucket Server endpoint and personal access token

Your Bitbucket Server endpoint is the hostname part of the URL when you visit your repositories in Bitbucket Server. Copy the hostname part of your Bitbucket Server server URL, which often looks something like If your server uses a non-default HTTPS port, then please also copy the port part of the URL. For example,

Do you have a private DNS?
Your Bitbucket Server hostname must be publicly addressable on the internet. If you use private DNS for your Bitbucket Server installation, then you can use the IP address of the server instead.

Do you have a firewall configured?
If your network infrastructure restricts inbound access over HTTPS from a set of IP addresses, then you may need to whitelist the IP addresses used by the buddybuild fleet. Please contact us for the latest CIDR range used by buddybuild.

Create a personal access token
Review Step 2 to create your personal access token.

The Connect with Bitbucket Server screen

The dialog should close and display a list of your repositories. At this point you have successfully completed connecting buddybuild with Bitbucket Server!

results matching ""

    No results matching ""