jenkins git 之 Advanced clone behaviours

jenins 上的 Git Plugin插件,默认是下载完整的历史版本,随着分支约多,历史版本约多,整个文件会很大,下载常常会超时。

单独的git命令可以使用以下方式来优化

git clone --depth=1 https://github.com/bcit-ci/CodeIgniter.git

也就是浅复制

在Jenkins上也有这样的参数,在Additional Behaviours中,选Advanced clone behaviours,如下图

这里,我也不多解释,?中都是说明,解释也是多余的。

原文地址:https://www.cnblogs.com/landhu/p/10564957.html