[英]Jenkins: Github webhook does not trigger any job
I try to configure Jenkins.我尝试配置詹金斯。 I want a simple behavior: trigger a build on new pull request.
我想要一个简单的行为:在新的拉取请求上触发构建。
I cannot understand what I missed...我无法理解我错过了什么......
Jenkins version: 2.89.2詹金斯版本:2.89.2
At https://ci.mysite.fr/configure :在https://ci.mysite.fr/configure :
Still no build triggered:仍然没有触发构建:
At https://ci.mysite.fr/job/test-back/configure :在https://ci.mysite.fr/job/test-back/configure :
On Github, Webhook is sent and well received by Jenkins:在 Github 上,Webhook 被 Jenkins 发送并受到好评:
Nginx Log says the same: Nginx 日志也这么说:
Help please!请帮助!
Some things to check when debugging this sort of thing:调试此类事情时要检查的一些事项:
Webhooks are arguably the most difficult Jenkins feature to test without prior experience, because of gotchas like these (probably their list is incomplete): Webhooks 可以说是 Jenkins 最难在没有经验的情况下测试的功能,因为这样的问题(可能他们的列表不完整):
New git commit / git push
must be made for each pipeline build (repeating a previous one won't trigger a new build even if webhooks are already set up correctly - see below).必须为每个管道构建进行新的
git commit / git push
(即使 webhooks 已经正确设置,重复前一个也不会触发新构建 - 见下文)。
First build made after setting up webhook correctly must be manual (no bootstrap from the webhook itself is possible).正确设置 webhook 后进行的第一次构建必须是手动的(不能从 webhook 本身进行引导)。
First build made after setting webhook correctly must succeed completely for the changes to take effect and for webhooks to start working.正确设置 webhook 后进行的第一次构建必须完全成功,更改才能生效并让 webhook 开始工作。 This will also cause Jenkins to miss all incoming requests made during the first build of a newly created pipeline.
这也会导致 Jenkins 错过在新创建的管道的第一次构建期间发出的所有传入请求。
More info更多信息
Received PushEvent for https://github.com/mirekphd/<REPO_NAME> from <GITHUB_IP> ⇒ <JENKINS_URL>/github-webhook/
Apr 16, 2021 9:42:12 PM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run
Poked <REPO_NAME>
Apr 16, 2021 9:42:13 PM INFO com.cloudbees.jenkins.GitHubPushTrigger$1 run
SCM changes detected in <REPO_NAME>. Triggering #236
For further info on points 2) and 3): see original source .有关第 2) 和 3) 点的更多信息:请参阅原始来源。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.