我有一个由 GitHub webhook 成功触发的工作 Tekton Pipeline,但它不适用于 Gitlab webhook。我可以看到 Gitlab webhook 被触发并且它到达了 OpenShift 中的 EventListener 容器,但是 Pipeline 本身没有运行。那么,它是否适用于 Gitlab webhook?如果是这样,是否需要设置或更改某些内容才能真正触发管道?
谢谢!塞萨尔
我有一个由 GitHub webhook 成功触发的工作 Tekton Pipeline,但它不适用于 Gitlab webhook。我可以看到 Gitlab webhook 被触发并且它到达了 OpenShift 中的 EventListener 容器,但是 Pipeline 本身没有运行。那么,它是否适用于 Gitlab webhook?如果是这样,是否需要设置或更改某些内容才能真正触发管道?
谢谢!塞萨尔
A Tekton Trigger can initiated by any http-request, so if you use a GitHub-webhook, a GitLab webhook or a curl
command should not matter.
However, those webhook requests provide data in a slightly different json-format, so to pass parameters to the Pipeline, you need to properly configure the TriggerBinding matching the request that you receive. You probably need a different TriggerBinding
for GitLab than for GitHub.
but the Pipeline itself does not run
it is hard to answer this part without more information. Any error message?