美文网首页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仓库失败

    错误信息 原因: 系统自带git版本过低解决方法:升级git 1. Install WANDisco repo p...

  • 【Git】基本操作

    一、拉取代码 1. 拉取指定分支代码 git clone -b [URL] 2. 拉取远程仓库代码(拉取远程仓库代...

  • Git---fetch

    $ git fetch #拉取分支,从远程仓库--->本地仓库$ git fetch --prune #本地删除远...

  • Git

    git安装 创建git用户 新建一个项目仓库 仓库初始化 git客户端拉取 免密拉取 配置信息 配置使用者信息 查...

  • Jenkins基础篇16-Jenkins拉取Git仓库最新代码并

    前面已经完成“将Git仓库最新代码拉取到Jenkins工作空间,那么本篇文章主要针对“Jenkins拉取Git仓库...

  • GIT使用

    从一个新仓库拉取代码开始开发 拉取远程仓库代码从远程拉取源代码到本地 git clone <仓库地址>此操作会在当...

  • [git] git拉取远程仓库,同步远程分支,解决冲突

    [git] git拉取远程仓库,同步远程分支,解决冲突 1.本地仓库存在 本地仓库与远程master已绑定 1.拉...

  • git 使用记录(一):git pull/git fetch拉取

    我们常用git拉取数据,通常是用git pull,不过同时也有人在用git fetch,同是从远程仓库拉取数据下来...

  • git常用命令集锦

    git init实例化仓库git clone xxxxxxx克隆git pull origin master拉取g...

  • github简单命令

    从远程仓库拉取:git clone https://github.com/InnoCEnCEI/demo.git ...

网友评论

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

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