Adding a Gitlab webhook
You can specify webhooks on Gitlab so that Bitrise automatically triggers a build of your app whenever you perform a specified action, such as a code push or a pull request.
You can set up webhooks so that Bitrise automatically triggers a build of your app whenever you perform a specified action, such as a code push or a pull request. For GitLab, all you have to do is register your bitrise-webhooks
URL as a Webhook in your GitLab repository.
You can register a webhook either automatically or manually. This guide walks you through the process of manually registering a webhook.
Admin access only
Only users with the role of admin on the app's team can access all functions of the App Settings page of an app.
-
Open your app on Bitrise.
-
On the main page of the app, click on the App Settings icon:
.
-
On the left, select Integrations.
-
Click
. -
In the pop-up window, select GitLab from the dropdown menu.
-
Copy the webhook URL.
-
Open your project on GitLab.com
-
Go to Settings of the project.
-
Select Integrations.
-
Enter the
bitrise-webhooks
URL in the URL field. -
In the Trigger section select:
-
Push events
-
Tag push events
-
Merge request events
-
-
Click Add webhook.
That’s all! The next time you push code, push a new tag or create/update a merge request a build will be triggered (if you have Trigger mapping defined for the event(s) on Bitrise).