When you have many microservices that needs CI which auto-triggers on git events, you might need webhooks
configured for each project, may be even multiple hooks for the same project.
In case of Jenkins the gitlab plugin provides the webhook url for each pipeline we create.
We can avoid manually configuring webhooks each time a new pipeline is created if we use the API. Just
provide the webhook url, authentication token and events that should trigger the hook and you
are all set.
Sample commands for configuring and managing hooks