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

相关推荐
高溪流19 分钟前
Linux常用操作练习题:
linux·运维·服务器
liyi_hz200830 分钟前
O2OA(翱途)服务器故障排查
linux·运维·服务器
robot_大菜鸟33 分钟前
Linux-L14-Linux中把用户加入到管理者root中
linux·运维·服务器
Shenqi Lotus1 小时前
Ansible-触发器_打标签
运维·ansible·ansible触发器·ansible打标签
weixin_438197381 小时前
LINUX之Ansible自动化运维工具配置和ssh-keygen配置远程免密钥登录
linux·运维·centos
weixin_464838151 小时前
HAProxy 安全配置
linux·运维·服务器·网络·数据库·安全
雲烟1 小时前
Docker技术
运维·docker·容器
凯子坚持 c1 小时前
影刀--- 自动化机器人需要了解的三大逻辑
运维·python·机器学习·自动化
yang-23072 小时前
ElasticSearch的安装与使用
大数据·elasticsearch·json·jenkins
大新新大浩浩2 小时前
centos7.9使用docker容器方式部署jenkins环境
docker·容器·jenkins