@Jenkins部署项目时,git报错fatal: index file smaller than expectedTOC

最近在学习部署Jenkins时,微服务构建一直报错:

Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress https://gitee.com/xxx +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: fatal: index file smaller than expectedat org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2051)at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:573)at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:994)... 11 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE

在网上找到的这个git的问题是这样解决的:

查看链接

由于Jenkins是用服务器上部署的git,并且去拉取远程仓库的,我按照上文的方法去处理,重新push发现仍然不行。

后来发现,将Jenkins中的工作空间要先清理掉,让Jenkins重新从远程仓库拉取,问题解决。如图:

Jenkins部署项目时,git报错fatal: index file smaller than expected相关推荐

  1. git fatal: index file smaller than expected

    为什么80%的码农都做不了架构师?>>>    由于git的index文件出错. 需要删除.git/index文件, 然后运行git reset,重新生成index文件. git r ...

  2. git报错error: index uses extension, fatal: index file corrupt

    git报错 error: index uses extension, which we do not understand fatal: index file corrupt 用git 拉取代码时,遇 ...

  3. git报错 fatal: unsafe repository

    因为电脑格式化后,重装了git,操作时然后遇到了之前没有遇到的问题! 比如git报错 fatal: unsafe repository 刚开始以为是路径出错,百度后才知道是之前版本漏洞被修复了 解决方 ...

  4. git报错 fatal: unsafe repository解决方法

    git报错 fatal: unsafe repository  xxx is owned by someone else 因为git进行了版本升级,添加了新的目录安全限制.会造成在进行git常规操作或 ...

  5. 运行项目时flask_sqlalchemy报错AttributeError: ‘LocalStack‘ object has no attribute ‘__ident_func__‘

    运行项目时flask_sqlalchemy报错AttributeError: 'LocalStack' object has no attribute '__ident_func__' 1.原因 2. ...

  6. jenkins构建时git报错:hudson.plugins.git.GitException: Failed to fetch from

    问题: jenkins拉取远程代码构建git报错:hudson.plugins.git.GitException: Failed to fetch from 拉不到远程分支 提示信息如下 ERROR: ...

  7. 解决git报错fatal: Authentication failed for ‘http://10.10.208.29/root/xmh.git/‘

    今天准备在git push代码的时候,突然报错fatal: Authentication failed for 'http://10.10.208.29/root/xmh.git/' 然后尝试了git ...

  8. Git报错:fatal: Authentication failed for ‘https://gitee.com/.......‘

    提交代码到码云,Git报错如下: Gavin: Incorrect username or password (access token) fatal: Authentication failed f ...

  9. git报错fatal: HTTP request failed

    关于git报错的原因,见下链接 此链接为转载: https://blog.csdn.net/zhang_danf/article/details/45538825 我遇到是curl 版本问题,更新cu ...

最新文章

  1. https://www.adminsub.net/tcp-udp-port-finder/14000 ——查找tcp端口对应的服务 可以看某些端口是否让恶意软件开启...
  2. 防止重复提交保证幂等的几种解决方案
  3. MATLAB从入门到精通系列之matlab常见问题集锦-(一)
  4. Notice : Soft open files now is 1024, We recommend greater than 10000
  5. slf4j 如何返回堆栈_重学JS系列 - JS 调用堆栈
  6. linux扩充单个路径下的内存,超详尽!Linux云服务器存储扩容实操
  7. 一个简单的MVC模式练习
  8. delphi listview失去焦点后的颜色_阴阳师姑获鸟和惠比寿建模更新对比 爷爷帅了 觉醒后鸟姐颜值提升...
  9. VMware vMotion 实时虚拟机迁移
  10. ios社交app源码_iOS中的社交媒体集成
  11. 蔬菜水果生鲜电商购物网站模板源码下载
  12. 汪华:未来三年的移动互联网创业
  13. 关于爬取豆瓣电影和豆瓣书本的图片
  14. 蓝桥杯 扶老奶奶过街 (逻辑推理)
  15. java并发-ReentrantReadWriteLock读写锁
  16. 高效团队建设与管理 学习心得
  17. Excel.Application使用手册
  18. 安装pycrypto,windows10,全解
  19. command: robot --argumentfile
  20. bzoj1599: [Usaco2008 Oct]笨重的石子

热门文章

  1. 牛客网——MySQL数据库练习
  2. 盈透api python封装_盈透证券 简单API 实战
  3. remix共享本地文件夹
  4. java内存中读文件_关于内存管理:读取Java中的大文件
  5. java 读取excel 合并单元格_利用java读写Excel文件、合并单元格
  6. 【Linux入门学习笔记】Linux命令查阅方法及文件操作命令简介
  7. 获取对话框当前cfont_MFC设置对话框、字体对话框、颜色对话框(转)
  8. 互联网金融系统实现之数据平台交互验证方式
  9. 【Java】不可变类(immutable)总结
  10. 【python第一章 基础捋顺,第二章 python基础语法】