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.

Caution

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.

Bitbucket Server 1.png

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

Bitbucket Server 2.png

Next, search for buddybuild and click Install.

Bitbucket Server 3.png

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

Bitbucket Server 4.png

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

Bitbucket Server 5.png

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).

Bitbucket Server 6.png

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

Bitbucket Server 7.png

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

Bitbucket Server 7.png

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

Bitbucket Server 8.png

Step 3: Connect your Bitbucket Server account

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

Bitbucket Server 11.png

First Build   Select Source   Gitlab Self hosted.png

Select Bitbucket Server.

Bitbucket Server 10.png

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

Note

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 git.mycompany.com. If your server uses a non-default HTTPS port, then please also copy the port part of the URL. For example, git.mycompany.com:1234.

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.

Bitbucket Server 13b.png

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 ""