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

相关推荐
搬码临时工28 分钟前
电脑同时连接内网和外网的方法,附外网连接局域网的操作设置
运维·服务器·网络
藥瓿亭29 分钟前
K8S认证|CKS题库+答案| 3. 默认网络策略
运维·ubuntu·docker·云原生·容器·kubernetes·cks
Gaoithe42 分钟前
ubuntu 端口复用
linux·运维·ubuntu
gsls2008083 小时前
ocrapi服务docker镜像使用
运维·docker·容器
文牧之3 小时前
PostgreSQL 的扩展pg_freespacemap
运维·数据库·postgresql
AWS官方合作商3 小时前
基于AWS Serverless架构:零运维构建自动化SEO内容生成系统
运维·serverless·aws
whp4044 小时前
windows server2019 不成功的部署docker经历
运维·docker·容器
IT界小黑的对象4 小时前
virtualBox部署ubuntu22.04虚拟机 NAT+host only 宿主机ping不通虚拟机
linux·运维·服务器
weixin_527550405 小时前
Linux 环境下高效视频切帧的实用指南
linux·运维·音视频
keson要进步5 小时前
CICD实战(一) -----Jenkins的下载与安装
运维·ci/cd·centos·自动化·jenkins