小编Tho*_*s T的帖子

Jenkins(Windows)非常慢Git fetch

我们在Windows Server 2012上的Jenkins安装上遇到了缓慢的git fetch命令.我已经尝试了这些线程中提到的所有解决方案:

任何人都可以通过永久修复找到解决方案吗?

Jenkins的控制台输出日志:

由远程主机启动

在工作区F:\ Jenkins\jobs\xxx\workspace中构建主服务器

> git.exe rev-parse --is-inside-work-tree #timeout = 10

从远程Git存储库中获取更改

> git.exe config remote.origin.url xhttp:// scm/git/xxx #timeout = 10

从xhttp:// scm/git/xxx获取上游更改

> git.exe --version #timeout = 10

使用.gitcredentials设置凭据

> git.exe config --local credential.helper store --file = \"C:\ Users\APP_JE~1\AppData\Local\Temp\git7476037793811743133.credentials \"#timeout = 10

> git.exe -c core.askpass = true fetch --tags --progress xhttp:// scm/git/xxx + refs/heads/:refs/remotes/origin /

问题在这里:上述命令可能需要30秒到120秒.在本地开发机器上需要几秒钟.

> git.exe config --local --remove-section credential #timetime = 10

版本信息:

詹金斯:1.608(最新) …

git ssh git-fetch jenkins jenkins-plugins

25
推荐指数
1
解决办法
9252
查看次数

标签 统计

git ×1

git-fetch ×1

jenkins ×1

jenkins-plugins ×1

ssh ×1