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

相关推荐
yuankoudaodaokou1 小时前
革新自动化产线调试,扫描生成点云精准引导机器人路径
运维·python·机器人·自动化
wengad1 小时前
podman搭建nginx服务
运维·nginx·podman
阡陌..1 小时前
Linux下的vi和vim使用方法
linux·运维·vim
hweiyu001 小时前
Linux 命令:diff
linux·运维·服务器
进击切图仔1 小时前
基于 linux 20.04 构建 ros1 noetic 开发环境 -离线版本
linux·运维·服务器
晚风吹长发1 小时前
初步了解Linux中的线程同步问题及线程安全和死锁与生产消费者模型
linux·运维·服务器·开发语言·数据结构·安全
mi20062 小时前
银河麒麟上tabby和electerm两款终端工具比较
linux·运维
muyan92 小时前
浅吐槽一下统信uos linux
linux·运维·国产化·uos·统信·去ioe
市场部需要一个软件开发岗位2 小时前
docker操作记录
运维·docker·容器
angushine2 小时前
TDSQL创建分区表
运维·mysql