Jenkins的Git签出错误,状态代码为128
当我试图使用jenkins从Git签出项目时,有时我会遇到这个错误。我的詹金斯项目是管道项目Jenkins的Git签出错误,状态代码为128,git,jenkins,Git,Jenkins,当我试图使用jenkins从Git签出项目时,有时我会遇到这个错误。我的詹金斯项目是管道项目 Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe fetch --no-tags --progress https://hqreadonlyuser@bitbucket.highq.com/scm/col/collaborate.git +refs/heads/*:refs/remo
Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe fetch --no-tags --progress https://hqreadonlyuser@bitbucket.highq.com/scm/col/collaborate.git +refs/heads/*:refs/remotes/origin/* --depth=1" returned status code 128:
stdout:
stderr: fatal: Unable to create 'D:/jenkins_slave/workspace/Collaborate/Automation/File/File_7/oldAutomationTests/.git/shallow.lock': File exists.
您可以在repo目录中使用以下命令:- 对于linux:- rm-r/home/myuser/my_source_code/.git/shallow.lock 适用于Windows:- cd.git 德尔浅锁酒店
您还可以安装“pre-scm build”插件和pre-scm步骤,以无条件删除.git目录中的锁文件,如果您经常看到这些文件,足以证明更改作业定义是正确的。是否在同一目录上同时运行管道?是否将其他作业签出到同一目录?签出是否成功结束?