Configuring Tekton webhooks in GitLab and Bitbucket
Learn how to add webhooks to your source code repository when you select Tekton as a CI provider.
Abstract
Preface Copy linkLink copied to clipboard!
When using Tekton as your CI provider, you must configure webhooks in your git provider (GitLab or Bitbucket). This ensures that code updates automatically trigger pipeline runs in RHDH.
Chapter 1. Configuring GitLab Webhooks to enable automated pipeline triggers Copy linkLink copied to clipboard!
Set up webhooks in GitLab to automatically trigger pipeline runs in Red Hat Developer Hub (RHDH) upon code updates.
Prerequisites
- You must have integrated GitLab during the RHADS - SSC install process.
- You have selected the GitLab repository for your application in the RHDH platform catalog.
-
You have a Webhook URL and a Secret Token. You can find these credentials in your
private.envfile.
Procedure
Navigate to your GitLab source repository.
- On the Red Hat Developer Hub platform, navigate to the Catalog, select an application where GitLab is configured as the repository host.
- Go to the Overview tab and select View Source to open the repository for your source code.
- Go to Settings > Webhooks.
- In the URL field, enter the webhook URL.
- In the Secret Token field, enter the secret token.
In the Trigger section:
- Select Push events.
- Select Merge request events.
- Click Add Webhook.
Verification
- Commit any change to the source repository in GitLab.
- Navigate to the CI tab in RHDH.
- Verify that a pipeline run is triggered for your code push.
Chapter 2. Configuring Bitbucket webhooks to enable automated pipeline triggers Copy linkLink copied to clipboard!
Set up webhooks in Bitbucket to automatically trigger pipeline runs in Red Hat Developer Hub (RHDH) upon code updates.
Prerequisites
- You must have integrated Bitbucket during the RHADS - SSC install process.
- You have selected the Bitbucket repository for your application in the RHDH platform catalog.
-
You must have a Webhook URL. You can find these credentials in your
private.envfile.
Procedure
- Navigate to your Bitbucket source repository.
- Go to Repository settings > Webhooks, and select Add webhook.
- In the Title field, enter an appropriate title.
- In the URL field, enter the webhook URL.
. In the Trigger section:
- Select Push.
- Select Merged.
- Select Save.
Verification
- Make a code change in your Bitbucket repository and push the changes.
- Navigate to the CI tab in RHDH.
- Verify that a pipeline run is triggered after your code update.
Revised on 2026-02-04 23:23:50 UTC