美文网首页CI-Gitlab工作生活
gitlab-runner拉取git仓库失败

gitlab-runner拉取git仓库失败

作者: 偏分武士 | 来源:发表于2019-07-03 10:20 被阅读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
    

    相关文章

      网友评论

        本文标题:gitlab-runner拉取git仓库失败

        本文链接:https://www.haomeiwen.com/subject/uenfhctx.html