First check that the URL for your Bitbucket Server instance is publicly available with a public DNS record for Gearset to connect. You can verify this by entering the instance URL at

Initial Bitbucket Server setup (team owner)

Then you'll need your Bitbucket Server administrator to create an application link within Bitbucket Server to Gearset. Then you'll need to get your Gearset team owner to link your Gearset team to that Bitbucket Server instance. This provides a mechanism for Gearset to authenticate against Bitbucket Server and only has to be completed once for your team. Once this initial connection has been made, any other users on your team can set up their own Bitbucket Server connection themselves in a couple of clicks.

Step 1: Copy Gearset's public key (Gearset team owner only)

  • Click + Connect to Bitbucket Server.

  • In the resulting dialog, get the generated Public key and Consumer key to hand as you'll need them for Step 2.

  • In a new tab, sign in to your Bitbucket Server instance as an administrator and navigate to the Administration page then click Application Links from the menu. (Note: this must be completed in a new tab to preserve the generated Consumer key.)

  • When prompted with a dialog to confirm the application URL, click Continue. The yellow warning can be ignored.

  • In the Link applications dialog, enter an Application Name, and leave the Application Type  as Generic Application. It's important to leave the Service Provider Name blank and to check Create incoming link before clicking Continue.

  • In the Link applications dialog, enter a Consumer Name and Gearset’s Consumer Key and Public Key from Step 1. Once the configuration is complete, click Continue.

  • Once completed, Gearset should appear as an application link in your Bitbucket Server instance.

Step 3: Authorize Gearset as your Bitbucket Server user

  • Switch back to to the Source control and services page in Gearset. In the same Add Bitbucket Server dialog as before, enter the Url of your Bitbucket Server instance and click Connect.

  • You’ll be redirected to your Bitbucket Server instance and prompted to log in, if you aren’t already. When prompted, grant Gearset permission to make changes to your Bitbucket Server data by clicking Allow.

  • Once complete, you'll be redirected back to Gearset. 

Connecting to Bitbucket Server (team members)

Once the Bitbucket Server application link has been created and Gearset has been authorized by the team owner, the rest of the team members will be able to connect to Bitbucket Server:

  • Navigate to the Source control and services page and click + Connect to Bitbucket Server.

  • Click Allow within the Welcome to Bitbucket Server dialogue box.

  • You'll be redirected back to Gearset and can start working with repositories on your Bitbucket Server instance.

Did this answer your question?