Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法使用“轮询SCM”和Git notifyCommit选项触发生成_Git_Jenkins_Githooks - Fatal编程技术网

无法使用“轮询SCM”和Git notifyCommit选项触发生成

无法使用“轮询SCM”和Git notifyCommit选项触发生成,git,jenkins,githooks,Git,Jenkins,Githooks,我们使用Jenkins 1.614并使用Git作为版本控制工具。Git插件版本是2.3.5。我试图在每次签入后触发构建,因为持续轮询太昂贵了。我尝试了各种链接中描述的以下方法,但不起作用: 启用“轮询SCM”并分配了一个虚拟值。我也试着不赋值。 在post接收挂钩中添加以下行: 卷曲http://jenkins_url:9099/jenkins/git/notifyCommit?url=ssh://gitolite@git_服务器/TestRepo查看构建git轮询日志,它可能表明存在问题。我

我们使用Jenkins 1.614并使用Git作为版本控制工具。Git插件版本是2.3.5。我试图在每次签入后触发构建,因为持续轮询太昂贵了。我尝试了各种链接中描述的以下方法,但不起作用:

启用“轮询SCM”并分配了一个虚拟值。我也试着不赋值。 在post接收挂钩中添加以下行: 卷曲http://jenkins_url:9099/jenkins/git/notifyCommit?url=ssh://gitolite@git_服务器/TestRepo查看构建git轮询日志,它可能表明存在问题。我也遇到过类似的问题,在Git中使用trigger by Poll SCM的Maven作业停止触发新的构建。显然原因是:

错误:无法记录SCM轮询。。。 nil:NilClass的未定义方法“add” 在Jenkins::Model::Build.initializeC:/Jenkins/plugins/nodeofflinenotification/


然后我注意到Node Offline Notification Plugin已被弃用,因此我卸载了它并安装了Mail Watcher Plugin,SCM轮询再次工作。

胡乱猜测:我认为您的Jenkins磁盘已不同步,请尝试转到您的管理员并选择从磁盘重新加载配置尝试了您的建议,但无效:谢谢帮助。然而,问题似乎在于所讨论的git插件。我正在等待修复,希望能在本月底前完成