Git引起的 gitlab-runner 报错

这篇具有很好参考价值的文章主要介绍了Git引起的 gitlab-runner 报错。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

在查看gitlab CI作业时,发现意外报错

重新初始化现存的 Git 版本库于 /home/gitlab-runner/builds/nzfEHD8s/0/devops/dig/.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

cleaning up project directory and file based variables,错误问题解决,git,gitlab,github

 报错时由于git版本引起的,查看git版本

[root@bt dig]# git version
git version 1.8.3.1

使用yum list | grep git,yum默认阿里云源里面最新的版本就是1.18.3 

我们需要升级git 的版本

1、安装源

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

2、更新git软件

yum install git -y

3、检查版本测试

[root@bt dig]# git --version
git version 2.31.1

版本已经更新最2.31了,再次执行gitlab CI作业,报错已经解决了。

cleaning up project directory and file based variables,错误问题解决,git,gitlab,github

 文章来源地址https://www.toymoban.com/news/detail-519758.html

到了这里,关于Git引起的 gitlab-runner 报错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • kubernetes基于helm部署gitlab-runner

    这篇博文介绍如何在 Kubernetes 中使用helm部署 GitLab-runner。 先决条件: 已运行的 Kubernetes 集群 已运行的 gitlab 实例 项目地址:https://gitlab.com/gitlab-org/charts/gitlab-runner 官方文档:https://docs.gitlab.com/runner/install/kubernetes.html 1、登陆UI创建新的runner 选择Your work– Admin Area 2、选择CI/

    2024年02月13日
    浏览(26)
  • Docker中gitlab以及gitlab-runner的安装与使用

    1、本文主要讲述如何使用Docker安装gitlab以及gitlab-runner,并且会讲述gitlab-runner如何使用 2、gitlab部分不需要修改过多的配置即可使用,本文未讲述https配置,如有需求,可自行百度 3、 Docker如何安装可以自行百度 1、使用命令直接安装gitlab最新版本(建议安装最新版本,更加安

    2024年02月14日
    浏览(27)
  • 【基于 GitLab 的 CI/CD 实践】02、gitlab-runner 实践

    目录 一、gitlab-runner 简介 1.1 要求 1.2 特点 二、GitLab Runner 安装 2.1 使用 GItLab 官方仓库安装 2.2 使用 deb/rpm 软件包 2.3 在容器中运行 GitLab Runner 三、GitLab Runner 注册 3.1 GitLabRunner 类型 3.2 获取 runner token 获取 shared 类型 runner token   ​获取 group 类型的 runner token   ​获取 speci

    2024年02月16日
    浏览(41)
  • gitlab-runner 中的 Docker-in-Docker

    笔者个人理解:gitlab-runner 安装后就是一个监听状态的 runner,而通过 gitlab-runner register 注册的“实例”其实只是预定义的配置节,当消息抵达后,gitlab-runner 根据消息内容选择相应的配置节启动执行线程。为了方便阐述和理解,本文也将每个 配置节/执行线程 称为 runner 实例

    2024年02月05日
    浏览(34)
  • 【Unity报错】Some objects were not cleaned up when closing the scene.

    Unity结束运行的时候报错Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?) 结束运行的时候突然报错,有概率,有时候有有时候没有 结束运行的时候在OnDestroy中调用了Mono的单例类,但是呢OnDestroy调用次序是不同的,有可能A先B后,也有可能是B先

    2024年02月02日
    浏览(30)
  • docker 报错“Encountered errors while bringing up the project”,实测有效

    最近在安装开源数据可视化工具 DataEase 服务时,遇到了报错,报错截图如下: 报错内容:  解决方案: 当这种报错时,dectl reload、dectl restart 都不生效,那么出现错误的原因是什么呢? 错误出现的原因是,之前启动的 docker-compose 没有关闭。 此时只需要进行 docker-compose 的关

    2024年02月14日
    浏览(40)
  • git 报错(nothing to commit, working tree clean)

            首先说一下git 的几个区:         1)工作区: 也就是本地文件区域         2)版本库中的暂存区: 将本地工作区文件加到暂存区,也就是 git add .  之后         3)  版本库当前分支:  暂存区的东西提交到当前分支,也就是 git commit -m 之后 这里出现这个错误的

    2024年02月10日
    浏览(25)
  • gitee(码云)git did not exit cleanly (exit code 1)报错解决办法

    git did not exit cleanly (exit code 1) 用之前看是否为此错误 !!! 相信很多小伙伴在使用gitee时都碰到过这个问题,网上的解决办法有的看着很复杂,那么我在这里分享一个简单的办法。 [亲测有效] 一 出现的问题 二 解决办法  1 先把之前clone的本地仓库放进回收站(防止文件找不

    2024年04月26日
    浏览(31)
  • gitlab CI/CD 安装 gitlab runner

    一、为什么需要安装gitlab runner ? 极狐GitLab Runner 是在流水线中运行作业的应用,与极狐GitLab CI/CD 配合运作。 说白了就是你部署的一个agent。 二、如何安装? 1.介绍通过helm部署github runner 2.helm添加仓库 helm repo add gitlab https://charts.gitlab.io 3.拉取chars helm pull gitlab/gitlab-runner -- 拉

    2024年02月14日
    浏览(50)
  • gitlab runner

    # install ``` # Download the binary for your system sudo curl -L --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 # Give it permission to execute sudo chmod +x /usr/local/bin/gitlab-runner # Create a GitLab Runner user sudo useradd --comment \\\'GitLab Runner\\\' --create-home gitlab-r

    2024年02月07日
    浏览(27)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包