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

相关推荐
知白守黑26736 分钟前
Ansible角色
运维·服务器·ansible
Jwest202136 分钟前
工业显示器在地铁电力监控与运维中的应用
运维·计算机外设
Mr. Cao code7 小时前
Docker:颠覆传统虚拟化的轻量级革命
linux·运维·ubuntu·docker·容器
wanhengidc8 小时前
云手机运行流畅,秒开不卡顿
运维·网络·科技·游戏·智能手机
笨小孩@GF 知行合一8 小时前
OSPF实验:外部路由引入
运维·网络·hcip·数通·ospf
asdfg12589639 小时前
为什么要在出口路由器router配置NAT与默认路由
运维·网络·计算机网络
bug攻城狮9 小时前
Skopeo 工具介绍与 CentOS 7 安装指南
linux·运维·centos
宇宙第一小趴菜9 小时前
08 修改自己的Centos的软件源
linux·运维·centos
bug攻城狮9 小时前
彻底禁用 CentOS 7.9 中 vi/vim 的滴滴声
linux·运维·服务器·centos·vim
苹果醋310 小时前
数据库索引设计:在 MongoDB 中创建高效索引的策略
java·运维·spring boot·mysql·nginx