Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Gitlab Cookbook

You're reading from   Gitlab Cookbook Over 60 hands-on recipes to efficiently self-host your own Git repository using GitLab

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher
ISBN-13 9781783986842
Length 172 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Jeroen van Baarsen Jeroen van Baarsen
Author Profile Icon Jeroen van Baarsen
Jeroen van Baarsen
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Introduction and Installation 2. Explaining Git FREE CHAPTER 3. Managing Users, Groups, and Permissions 4. Issue Tracker and Wiki 5. Maintaining Your GitLab Instance 6. Webhooks, External Services, and the API 7. Using LDAP and OmniAuth Providers 8. GitLab CI A. Tips and Tricks Index

Using GitLab CI webhooks


It is possible to have GitLab CI call a webhook whenever a build is run. Setting this up is really straightforward.

How to do it…

Let's set up the webhook with the following steps:

  1. Log in to your GitLab CI app as an administrator.

  2. Click on the project you want to have webhooks enabled for.

  3. Go to the webhooks page.

  4. Here, you find an input field where you can enter the URL for the webhook.

  5. Click on Add web hook.

  6. This will add an entry to the enabled webhooks.

  7. To test whether the webhook is sending the correct information, you can click on the Test Hook button. This will send a sample message to the configured webhook.

How it works…

By configuring the webhook, you can receive notifications about the build status of your commits. This can be a system that checks the incoming message to see whether the build was successful, and if it was, it can deploy the build to a staging or production server.

You can also use the information provided by the webhook to create statistics about...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime