【发布时间】:2019-02-22 06:59:43
【问题描述】:
我从詹金斯奴隶执行repo sync。
但是错误发生在特定的存储库中。
Cloning into 'repo_name'...
Connection to xxx.xxx.xxx.xxx closed by remote host.
fatal: The remote end hung up unexpectedly
当我手动执行它(不是来自 jenkins)时,repo sync 是成功的。 上述错误只有在jenkins的slave执行时才会出现。
我也尝试在 cmd 之下。但它失败了同样的错误。
git clone ssh://user@xxx.xxx.xxx.xxx:port/path/to/reponame
我参考以下内容尝试git config --global http.postBuffer 524288000。
但它不固定....
The remote end hung up unexpectedly while git cloning
我添加--progress和--verbose进行调查
git clone --progress --verbose ssh://user@xxx.xxx.xxx.xxx:port/path/to/reponame
git clone 成功!!
为什么詹金斯的奴隶失败了。
为什么添加--progress --verbose就成功了。
我可以在没有--progress 的情况下修复它吗?
(从 jenkins 执行时,repo sync 似乎没有--progress。)
对不起,我的英语不好。
【问题讨论】: