jenkins用老工程拉取问题,stderr: fatal: not in a git directory

复制代码
at hudson.model.Executor.run(Executor.java:442)
Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git config remote.origin.url https://github.com/a772616239/test2.git" returned status code 128:
stdout: 
stderr: fatal: not in a git directory

搞了很久,最后发现其实很简单,因为原工程的用户群组与git所需的不一致问题被git限制了,所以切回系统群组即可。

只需找到workspace工程右键显示简介,

点击这里,然后点击应用到包含的项目,将文件夹下所有文件的群组与jenkins git所需要的用户群组一致即可

相关推荐
MacroZheng10 小时前
Claude Code官方桌面端正式发布,夯爆了!
java·人工智能·后端
虚无境10 小时前
如何编写一个SpringBoot项目告警推送的Starter
java·prometheus·webhook
NE_STOP1 天前
Vide Coding--AI编程工具的选择
java
码云数智-园园1 天前
C++20 Modules 模块详解
java·开发语言·spring
程序员黑豆1 天前
JDK 下载安装与配置详细教程
java·前端·ai编程
小宇宙Zz1 天前
Maven依赖冲突
java·服务器·maven
swordbob1 天前
NIO的channel中什么是 fd(File Descriptor,文件描述符)
java·开发语言·nio
咖啡八杯1 天前
GoF设计模式——享元模式
java·spring·设计模式·享元模式
十五喵源码网1 天前
基于springboot2+vue2的租房管理系统
java·毕业设计·springboot·论文笔记