赞
踩
报错代码如下:
Reinitialized existing Git repository in /home/gitlab-runner/builds/xx/0/NQ/qiangchuang_tool/.git/
fatal: git fetch-pack: expected shallow list
fatal: The remote end hung up unexpectedly
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit status 1
原因:是yum安装的git版本太低,默认是1.8.3.1
解决方法:
更新git版本, 命令如下:
# 安装源
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
# 更新git软件
yum install git -y
安装后,再次构建,就不会报错了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。