GitLab

You can use Buildkite to run builds on GitLab commits.

GitLab repositories

If you are hosting your repositories on gitlab.com enter your gitlab.com repository URL when you create your pipeline in Buildkite (e.g. git@gitlab.com:your/repo.git) and follow the instructions provided on that page to set up webhooks.

GitLab Community/Enterprise Edition

The earliest supported version of GitLab is 7.4.

  1. Open your Buildkite Organization's Settings and choose Repository Providers
  2. Click GitLab and select the GitLab Edition Type (Community or Enterprise) you want to connect to your Buildkite Organization, and enter the URL to your GitLab installation (e.g. https://git.example.org).

You can optionally specify a list of IP addresses to restrict where builds can be triggered from. This field accepts a space separated list of networks in CIDR notation.

Screen of Buildkite Organization GitLab Settings

Click Save GitLab Settings before leaving this page.

Create a new pipeline on Buildkite using your GitLab repository's URL (e.g. git@git.mycompany.com:your/repo.git) and follow the instructions on the pipeline creation page.