Jenkins管道作业不会在GitHub推送中触发 [英] Jenkins Pipeline job isn't triggered on GitHub push

查看:422
本文介绍了Jenkins管道作业不会在GitHub推送中触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了Jenkins Pipline作业,并希望它在我的GitHub repo推送事件中被触发。

我已将repo url添加到作业配置并选中触发推送选项:



我还添加了GitHub令牌和jenkins配置所需的权限Github部分:



在推送到我的GitHub仓库后,所有步骤仍然没有被触发。



有没有人有任何想法wh

解决方案

使用GITSub钩子触发器进行GITScm轮询,您需要启用Poll SCM选项,因为github push会触发git轮询来验证是否有新更改,然后在发现更改时运行构建。
您可以保持cron时间表为空 Github webhook with scm poll


I've created Jenkins Pipline job and want it to be triggered on my GitHub repo push event.

I've added repo url to job config and checked "trigger on push option":

I've also added GitHub token with needed rights to jenkins configure Github section:

In Github repo I've enabled webhook for my Jenkins server:

And after all steps still nothing is triggered after push to my GitHub repo.

Does anyone have any idea what's going on and why Jenkins doesn't trigger configured pipeline job?

解决方案

With Github hook trigger for GITScm polling, you need to enable "Poll SCM" option because github push triggers git polling to verify if there is a new change and then runs the build if a change is found. You can keep the cron schedule empty.Github webhook with scm poll

这篇关于Jenkins管道作业不会在GitHub推送中触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆