Jenkins - 浅层克隆的影响

Jenkins - Impact of shallow clone

我已经设置了启用 Git SCM 的 Jenkins。

由于 Git 服务器位于另一个国家,内网网络连接速度较慢,Git 同步对我来说太慢了。它失败了很多次。

我在网上看了一些建议 'enable shallow clone'。

但我担心的是,如果我进行浅克隆,我会错过一些东西。类似于 'change history'.

这是一个 Xamarin Android C# 解决方案,想知道做浅克隆是否安全。

浅克隆可以解决我的网络慢问题吗?它对 jenkins 的工作有何影响?

唯一的影响是你的工作有一个limited view of the cloned/fetched history (since it is a shallow one,深度有限)

但您不会错过任何*新的历史变化:JENKINS Git Plugin would still detect new commits on the remote repo side. (and, if the workspace is not cleaned at each new job, would )