[英]Issue while triggering jenkins pipeline using github webhooks for specific branch
[英]Jenkins multi branch project and Github webhooks
好像我缺少什么。
我使用git@github.someorg.com/repo.git这样的SCM在Jenkins中设置了多分支jon,它扫描了所有当前分支。
然后,我在Github中使用URL http://jenkins.someorg.com/github-webhook/设置了所有事件的Web挂钩。
Github显示事件已成功发送。 Jenkins日志显示事件已收到蜜蜂。
Received PUSH for https://github.someorg.com/repo from IP ⇒ http://jenkins.someorg.com/github-webhook/
但是詹金斯的工作本身没有任何反应...
仔细检查“ 在Jenkins中设置GitHub Webhook ”
您需要确保将构建触发器设置为“将更改推送到GitHub时进行构建”,当然还要有GitHub存储库网址;)
而且,Jenkins应该已经有一个与所需的GitHub项目相关联的SSH密钥。
找到解决方案。 我正在使用Git回购。 但是当我使用API密钥切换到Github时,一切正常
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.