自学内容网 自学内容网

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所需要的用户群组一致即可


原文地址:https://blog.csdn.net/qq_19646129/article/details/138013324

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!