CI-Gitlab工作生活

gitlab-runner拉取git仓库失败

2019-07-03  本文已影响0人  偏分武士

错误信息

Running with gitlab-runner 12.0.1 (0e5417a3)
  on autobuild-02 qyhAY53y
Using Shell executor...
Running on xxxxx.novalocal...
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /home/gitlab-runner/builds/qyhAY53y/0/tangaoxiong/ci-hotupdate-demo/.git/
fatal: git fetch-pack: expected shallow list
fatal: The remote end hung up unexpectedly
ERROR: Job failed: exit status 1

原因: 系统自带git版本过低
解决方法:升级git

1. Install WANDisco repo package for

centos6:

yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm

centos7:

yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm

centos7另外一个版本:

yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm

2. 安装git最新版本

sudo yum install –y git

3. 检查新版本

git --version
上一篇下一篇

猜你喜欢

热点阅读