Chapter 1. Configuring GitLab Webhooks to enable automated pipeline triggers


Set up webhooks in GitLab to automatically trigger pipeline runs in RHDH upon code updates.

Prerequisites

  • You must have integrated GitLab during the RHTAP install process.
  • You have a source repository. To locate your application’s source code:

    1. On the RHDH platform, navigate to the Catalog, select an appropriate application where GitLab is configured as the repository host.
    2. Go to the Overview tab and select View Source to open the repository where your application’s source code is housed.
  • You have a Webhook URL and a Secret Token. You can find these credentials in your private.env file.

Procedure

  1. Navigate to your GitLab source repository.

    1. On the Red Hat Developer Hub platform, navigate to the Catalog, select an application where GitLab is configured as the repository host.
    2. Go to the Overview tab and select View Source to open the repository for your source code.
  2. Go to Settings > Webhooks.
  3. In the URL field, enter the webhook URL.
  4. In the Secret Token field, enter the secret token.
  5. In the Trigger section:

    1. Select Push events.
    2. Select Merge request events.
  6. Click Add Webhook.

Verification

  1. Commit any change to the source repository in GitLab.
  2. Navigate to the CI tab in RHDH.
  3. Verify that a pipeline run is triggered for your code push.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat