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
Jenkins git获取失败,选项未知--progress_Git_Jenkins - Fatal编程技术网

Jenkins git获取失败,选项未知--progress

Jenkins git获取失败,选项未知--progress,git,jenkins,Git,Jenkins,两年多以来,我们一直在使用jenkins构建一个项目。我们最近更新了jenkins和插件(我们需要maven-3特性),现在它无法进行简单的git获取。以下是错误消息: FATAL: Failed to fetch from https://github.com/powertac/sample-broker.git hudson.plugins.git.GitException: Failed to fetch from https://github.com/powertac/sample-br

两年多以来,我们一直在使用jenkins构建一个项目。我们最近更新了jenkins和插件(我们需要maven-3特性),现在它无法进行简单的git获取。以下是错误消息:

FATAL: Failed to fetch from https://github.com/powertac/sample-broker.git hudson.plugins.git.GitException: Failed to fetch from https://github.com/powertac/sample-broker.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:625) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:847) ... Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress https://github.com/powertac/sample-broker.git +refs/heads/*:refs/remotes/origin/*" returned status code 129: stdout: stderr: error: unknown option `progress' usage: git fetch [options] [ ..] 致命:无法从中提取https://github.com/powertac/sample-broker.git hudson.plugins.git.GitException:未能从中获取https://github.com/powertac/sample-broker.git 位于hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:625) 位于hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:847) ... 原因:hudson.plugins.git.git异常:命令“git fetch--tags--progresshttps://github.com/powertac/sample-broker.git +refs/heads/*:refs/remotes/origin/*“返回的状态代码129: 标准: 标准:错误:未知选项“进度” 用法:git fetch[options][…] 如您所见,jenkins发出的命令行包含一个未知选项--progress。我已经搜索了配置文件,但找不到它的来源。以下是相关的版本号:

詹金斯:1.550
JenkinsGitPlugin:2.0.1
吉特:1.7.0.4
操作系统:Ubuntu 10.04


我缺少什么?

不幸的是,它是硬编码的,这是的依赖关系

Git
——版本1.7.1中获取命令的进度
选项

Git客户端插件--1.5.0版以后的Gitfetch命令的progress选项

在此之前,在版本1.4.6中,Git客户端插件使用Gitclone命令而不是fetch,并在决定是否使用
--progress
选项(自Git版本1.7.0以来,Gitclone命令)之前使用已安装的Git版本

因此,从最简单的方法开始,解决问题的可能方法有:

  • 在您的系统上获取更新(1.7.1+)版本的git;在Ubuntu上获取最新版本的软件可能会成为一个问题,所以你可能需要检查一下
  • 要求Git客户端插件团队添加对Git 1.7.0的支持,等待他们发布新版本,然后使用它
  • 安装较旧(1.4.6)版本的Git客户端插件;请注意,为了保持兼容性,您可能还需要降级Git插件
  • 在本地自行修补Git客户端插件
  • …想出更痛苦的事情:)

感谢您的出色侦探工作。我已经把它修好了