今天构建jenkins发现git插件报错内容如下

java.io.IOException: Could not checkout c543d1179b89b745788a2cc85a13102d73e9cba2 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1138) at hudson.scm.SCM.checkout(SCM.java:485)

stderr: fatal: Unable to create ‘/app/jekins/jobs/WEB/workspace/.git/index.lock’: File exists.

解决方法

删除项目.index.lock

rm -fr index.lock

 

 

欢迎留言