在自由式作业中,在舞台构建触发器上有一个名为“GITScm轮询的GitHub钩子触发器”的选项 .
屏幕截图:
.
与gitlab配置中的webhook一起“http://myjenkins/gitlab/notify_commit " it works fine, meaning that the build will be triggered automatically when something is pushed to the repository. But why in Multibranch Pipeline there is only one option named "如果没有其他运行则定期”?有没有安装插件?如何使用像自由式作业的github webhook触发Multibranch Pipeline构建
1 回答
This页面描述了如何在jenkins的multibranch工作流上配置pipeline-as-code .
这是里面描述的引用:
要配置webhook,请参阅this页面 .
要检查事件是否通知您的jenkins,您可以使用以下此功能:
PS:观察您配置的URL目标,如果您错过了网址末尾的"/",则可能无法访问jenkins .
我希望这有帮助!