我们在Windows Server 2012上的Jenkins安装上遇到了缓慢的git fetch命令.我已经尝试了这些线程中提到的所有解决方案:
Hudson git命令*令人难以置信*慢(使用PuTTY中的plink.exe并设置GIT_SSH使用它)
Jenkins挂在"从原点获取上游更改"(更改Jenkins以使用cmd\git.exe而不是bin\git.exe)
任何人都可以通过永久修复找到解决方案吗?
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(最新) …