4.9. Triggering a PipelineRun


Whenever a push event occurs in the Git repository, the configured Webhook sends an event payload to the publicly exposed EventListener service route. The EventListener service of the application processes the payload, and passes it to the relevant TriggerBindings and TriggerTemplates pair. The TriggerBinding extracts the parameters and the TriggerTemplate uses these parameters to create resources. This may rebuild and redeploy the application.

In this section, you push an empty commit to the front-end vote-ui repository, which then triggers the PipelineRun.

Procedure

  1. From the terminal, clone your forked Git repository vote-ui:

    $ git clone git@github.com:<your GitHub ID>/vote-ui.git -b release-tech-preview-2
    Copy to Clipboard Toggle word wrap
  2. Push an empty commit:

    $ git commit -m "empty-commit" --allow-empty && git push origin release-tech-preview-2
    Copy to Clipboard Toggle word wrap
  3. Check if the PipelineRun was triggered:

    $ tkn pipelinerun list
    Copy to Clipboard Toggle word wrap

    Notice that a new PipelineRun was initiated.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat