C++ Jenkins生成失败,Windows上出现GitLockFailedException

C++ Jenkins生成失败,Windows上出现GitLockFailedException,c++,git,jenkins,C++,Git,Jenkins,我正在设置一个运行Windows XP的Jenkins从属程序,以构建一个基于C++的项目。空作业运行良好,因此我得出结论,基本功能正在运行。尽管如此,当我尝试将gitrepo添加到克隆时,还是出现了一个错误: 19:50:34 Started by user a.rogozhnikov 19:50:34 Собирается удаленно на build-winxp in workspace c:\jenkins\workspace\ATM-windows 19:50:34 java.i

我正在设置一个运行Windows XP的Jenkins从属程序,以构建一个基于
C++
的项目。空作业运行良好,因此我得出结论,基本功能正在运行。尽管如此,当我尝试将
git
repo添加到克隆时,还是出现了一个错误:

19:50:34 Started by user a.rogozhnikov
19:50:34 Собирается удаленно на build-winxp in workspace c:\jenkins\workspace\ATM-windows
19:50:34 java.io.IOException: remote file operation failed: c:\jenkins\workspace\ATM-windows at hudson.remoting.Channel@223813db:build-winxp
19:50:34    at hudson.FilePath.act(FilePath.java:910)
19:50:34    at hudson.FilePath.act(FilePath.java:887)
19:50:34    at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:66)
19:50:34    at hudson.plugins.git.GitSCM.createClient(GitSCM.java:569)
19:50:34    at hudson.plugins.git.GitSCM.createClient(GitSCM.java:561)
19:50:34    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:866)
19:50:34    at hudson.model.AbstractProject.checkout(AbstractProject.java:1414)
19:50:34    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
19:50:34    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
19:50:34    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561)
19:50:34    at hudson.model.Run.execute(Run.java:1678)
19:50:34    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
19:50:34    at hudson.model.ResourceController.execute(ResourceController.java:88)
19:50:34    at hudson.model.Executor.run(Executor.java:231)
19:50:34 Caused by: java.io.IOException: Remote call on build-winxp failed
19:50:34    at hudson.remoting.Channel.call(Channel.java:731)
19:50:34    at hudson.FilePath.act(FilePath.java:903)
19:50:34    ... 13 more
19:50:34 Caused by: java.lang.NoClassDefFoundError: hudson/plugins/git/GitLockFailedException
19:50:34    at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:63)
19:50:34    at org.jenkinsci.plugins.gitclient.Git$1.invoke(Git.java:54)
19:50:34    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2461)
19:50:34    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
19:50:34    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
19:50:34    at hudson.remoting.Request$2.run(Request.java:328)
19:50:34    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
19:50:34    at java.util.concurrent.FutureTask.run(Unknown Source)
19:50:34    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
19:50:34    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
19:50:34    at hudson.remoting.Engine$1$1.run(Engine.java:63)
19:50:34    at java.lang.Thread.run(Unknown Source)
19:50:34 Caused by: java.lang.ClassNotFoundException: hudson.plugins.git.GitLockFailedException
19:50:34    at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1365)
19:50:34    at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315)
19:50:34    at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068)
19:50:34    at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
19:50:34    at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:742)
19:50:34    at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:784)
19:50:34    at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
19:50:34    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
19:50:34    at java.lang.reflect.Method.invoke(Method.java:622)
19:50:34    at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299)
19:50:34    at hudson.remoting.Request$2.run(Request.java:328)
19:50:34    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
19:50:34    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
19:50:34    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
19:50:34    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
19:50:34    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
19:50:34    at java.lang.Thread.run(Thread.java:701)
19:50:34 Finished: FAILURE
搜索
GitLockFailedException
没有任何线索,我想我遗漏了什么。 我尝试以普通用户的身份运行Jenkins Slave服务(没有帮助),尝试在
运行Windows命令
构建步骤中手动执行
git克隆
(尽管需要更多的努力,但仍然有效)。
有什么问题吗?

我认为您必须将Jenkins更新到最新版本。很有可能解决这个问题


不要忘记在“配置->节点属性->工具位置”中覆盖Windows节点的git设置。

可能是权限-Hudson通常作为“服务控制面板”中的系统用户运行,因此它不一定有权访问远程repo。尝试以您自己的用户身份运行它以测试此功能。将Jenkins从1.544更新到1.547解决了此问题,谢谢!