Configuring webhooks in GitLab
You can configure a webhook to link work items to Git commits.
Procedure
- In the web client, log on to Change and Configuration Management. For example, go to https://host_name:9443/ccm/web.
- On the CCM project page, click Source Control > Work with Git.
- Click Browse Registered Git Repositories.
- Select the repository that you registered.
- Expand the Host Server Configuration section.
- In the Hosting Server field, select GitLab.
- In the Secret Key Authorization field, add a secret. The secret is provided when you configure the webhook in GitLab.
- Click the Copy button next to the webhook URL.
- Optional:
If GitLab and EWM do not
share a user base, add a functional user ID for the webhook URL.
- Click Insert Functional User.
- Select the user and click OK. Click the Copy button next to the webhook URL.
- Click Add Webhook.
- Click Save to persist the changes to the Git Repository Registration page in IBM® Engineering Workflow Management (EWM).
- In your GitLab project web UI, open the integrations page of your project.
- To add the webhook URL to the GitLab repository, follow the instructions in Webhooks.
- Under the Trigger section, select the Push event.
- In the Secret Token field, enter the value that you entered in the Secret Key Authorization field.
- In the Webhook URL field, paste the web hook URL that you copied in step 8.
- Click Save to the webhook configuration in GitLab.