Buildkite integrates with Bitbucket Server to provide automated builds based on your source control. You can run a build every time you push code to Bitbucket Server, using a webhook that you create in your Bitbucket Server.
On this page:
Step 1: connect Bitbucket Server and set up a pipeline
- Select Settings to open the Organization Settings page.
- Navigate to Repository Providers.
- Select Bitbucket Server.
- In URLs, enter the address of your Bitbucket Server, including a port if needed. For example,
localhost:8000. You can also restrict which network addresses are allowed to trigger builds via webhooks in Allowed IP Addresses in Network Settings.
- Select Save Settings.
- Set up a pipeline as normal. Refer to Pipelines for more information.
Step 2: confirm your setup
If your configuration worked, Buildkite automatically recognizes your repository URL as a Bitbucket Server repository. To check this, go to Pipelines >
your-pipeline > Pipeline Settings. You should see Bitbucket Server in the Pipeline Settings menu.
Step 3: work through the in-app guide to set up your webhook
Buildkite includes built-in instructions on how to set up a Bitbucket Server webhook. This webhook allows Bitbucket Server to trigger Buildkite builds in response to events like code pushes and pull requests.
- Navigate to Pipelines >
your-pipeline> Pipeline Settings > Bitbucket Server.
- Select Bitbucket Server Setup Instructions.
- Follow the on screen instructions to configure your webhook.