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即可。

相关推荐
鸿蒙布道师34 分钟前
宇树科技安全漏洞揭示智能机器人行业隐忧
运维·网络·科技·安全·机器学习·计算机视觉·机器人
带鱼吃猫39 分钟前
Linux系统:文件系统前言,详解CHS&LBA地址
linux·运维·服务器
默默提升实验室1 小时前
Linux 系统如何挂载U盘
linux·运维·服务器
Lw老王要学习1 小时前
Linux架构篇、第五章git2.49.0部署与使用
linux·运维·git·云计算·it
showmethetime2 小时前
搭建高可用及负载均衡的Redis
运维·redis·负载均衡
上天_去_做颗惺星 EVE_BLUE2 小时前
Docker入门教程:常用命令与基础概念
linux·运维·macos·docker·容器·bash
孙克旭_9 小时前
PXE_Kickstart_无人值守自动化安装系统
linux·运维·自动化
π大星星️11 小时前
HAProxy + Keepalived + Nginx 高可用负载均衡系统
运维·nginx·负载均衡
IT专业服务商11 小时前
联想 SR550 服务器,配置 RAID 5教程!
运维·服务器·windows·microsoft·硬件架构
UpUpUp……14 小时前
Linux--JsonCpp
linux·运维·服务器·c++·笔记·json