我最近的任务是使用Jenkins,GitHub和Windows Server 2008派生CI解决方案,该解决方案配置为使用Git可执行文件(在Manage Jenkins - > Configure System选项卡下):
C:\msysgit\git-cmd.bat
虽然维基文章链接提供了一些见解,但我收到以下错误:
Building in workspace C:\Users\Jenkins\.jenkins\jobs\{job name}\workspace Checkout:workspace / C:\Users\Jenkins\.jenkins\jobs\{job name}\workspace - hudson.remoting.LocalChannel@5a969ec9 Using strategy: Default Cloning the remote Git repository Cloning repository git@github.com:{git repo}.git git --version Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information Fetching upstream changes from origin FATAL: Invalid id: Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information java.lang.IllegalArgumentException: Invalid id: Process leaked file descriptors. See [same wiki link] for more information at org.eclipse.jgit.lib.ObjectId.fromString(ObjectId.java:232) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:265) at hudson.plugins.git.GitAPI.revParse(GitAPI.java:252) at hudson.plugins.git.util.DefaultBuildChooser.getHeadRevision(DefaultBuildChooser.java:95) at hudson.plugins.git.util.DefaultBuildChooser.getCandidateRevisions(DefaultBuildChooser.java:87) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1051) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942) at hudson.FilePath.act(FilePath.java:904) at hudson.FilePath.act(FilePath.java:877) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1108) at hudson.model.AbstractProject.checkout(AbstractProject.java:1369) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:241)
造成这种情况的原因是什么?