jenkins 构建报错ERROR: Error fetching remote repo ‘origin‘

问题描述

修改项目的仓库地址后,使用jenkins构建报错

txt 复制代码
Running as SYSTEM
Building in workspace /var/jenkins_home/workspace/【测试】客户端/client-fonchain-main
The recommended git tool is: NONE
using credential 680a5841-cfa5-4d8a-bb38-977f796c26dd
 > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/【测试】客户端/client-fonchain-main/.git # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url http://xxxxxx/fonchain/fonchain-main.git  # timeout=10
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from http://xxxxx/fonchain/fonchain-main.git 
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1003)

主要报错内容:ERROR: Error fetching remote repo 'origin'

解决方案

在jenkins的工作空间中,选择【清理工作空间】。然后再执行Build即可。

相关推荐
qq_452396231 小时前
第十五篇:《UI自动化中的稳定性优化:解决flaky tests的七种武器》
运维·ui·自动化
j_xxx404_2 小时前
Linux:静态链接与动态链接深度解析
linux·运维·服务器·c++·人工智能
Elastic 中国社区官方博客3 小时前
Elastic-caveman : 在不损失 Elastic 最佳效果的情况下,将 AI 响应 tokens 减少64%
大数据·运维·数据库·人工智能·elasticsearch·搜索引擎·全文检索
jsons14 小时前
给每台虚拟机设置独立控制台密码
linux·运维·服务器
云栖梦泽5 小时前
Linux内核与驱动:14.SPI子系统
linux·运维·服务器·c++
福大大架构师每日一题5 小时前
openclaw v2026.4.24 发布:Google Meet 深度集成、DeepSeek V4 上线、浏览器自动化与插件架构全面升级
运维·架构·自动化·openclaw
yipiantian5 小时前
在Claude项目中实现跨目录访问Skills
linux·运维·服务器
Agent产品评测局6 小时前
生产排期与MES/ERP系统打通,实操方法详解 —— 2026企业级智能体自动化选型与实战指南
java·运维·人工智能·ai·chatgpt·自动化
cen__y6 小时前
Linux07(信号01)
linux·运维·服务器·c语言·开发语言
MT5开发6 小时前
Linux安装MariaDB
linux·运维·mariadb