Jenkins 打包服务出现 stderr: fatal: Not a valid object name HEAD 错误

Command "git read-tree -mu HEAD" returned status code 128:
stdout: 
stderr: fatal: Not a valid object name HEAD
 > git checkout -f 08b6a5718b0beff9d1abf2a4c20a1e85bfd3c8d1 # timeout=10
FATAL: Could not checkout 08b6a5718b0beff9d1abf2a4c20a1e85bfd3c8d1
hudson.plugins.git.GitException: Command "git checkout -f 08b6a5718b0beff9d1abf2a4c20a1e85bfd3c8d1" returned status code 128:
stdout: 
stderr: error: Sparse checkout leaves no entry on working directory
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2430)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$1100(CliGitAPIImpl.java:81)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2743)
Caused: hudson.plugins.git.GitException: Could not checkout 08b6a5718b0beff9d1abf2a4c20a1e85bfd3c8d1
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2767)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1217)
	at hudson.scm.SCM.checkout(SCM.java:505)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
	at hudson.model.Run.execute(Run.java:1856)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:428)
Finished: FAILURE

我的项目在通过Jenkins打包的时候出现如上的提示,通过分析发现在配置该项目的时候把该项目中的pom文件的路径写错。

Jenkins 打包服务出现  stderr: fatal: Not a valid object name HEAD 错误

 

上一篇:解决Jenkins上出现git出现“ERROR: Timeout after 10 minutes”的时间超时问题


下一篇:中间件-jekins-首次启动显示已离线的解决方案