此内容没有您所选择的语言版本。

Configuring Tekton webhooks in GitLab and Bitbucket


Red Hat Advanced Developer Suite - software supply chain 1.8

Learn how to add webhooks to your source code repository when you select Tekton as a CI provider.

Red Hat Advanced Developer Suite - software supply chain Documentation Team

Abstract

This document provides instructions on adding webhooks to your source code repository when you select Tekton as a CI provider.

Preface

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.

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.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.

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.env file.

Procedure

  1. Navigate to your Bitbucket source repository.
  2. Go to Repository settings > Webhooks, and select Add webhook.
  3. In the Title field, enter an appropriate title.
  4. In the URL field, enter the webhook URL.
  5. . In the Trigger section:

    1. Select Push.
    2. Select Merged.
  6. Select Save.

Verification

  1. Make a code change in your Bitbucket repository and push the changes.
  2. Navigate to the CI tab in RHDH.
  3. Verify that a pipeline run is triggered after your code update.

Revised on 2026-02-04 23:23:50 UTC

Legal Notice

Copyright © Red Hat.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部