【发布时间】:2018-03-22 07:25:47
【问题描述】:
当我尝试通过 Jenkins 标记特定构建时,我收到以下错误:
ERROR: Error tagging repo 'refs/remotes/origin/master' :
org.eclipse.jgit.api.errors.NoHeadException: Tag on repository without
HEAD currently not supported hudson.plugins.git.GitException:
org.eclipse.jgit.api.errors.NoHeadException: Tag on repository without
HEAD currently not supported at
org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:509)
at
hudson.plugins.git.GitTagAction$TagWorkerThread.perform(GitTagAction.java:199)
at hudson.model.TaskThread.run(TaskThread.java:129) Caused by:
org.eclipse.jgit.api.errors.NoHeadException: Tag on repository without
HEAD currently not supported at
org.eclipse.jgit.api.TagCommand.call(TagCommand.java:137) at
org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:507)
... 2 more Trying next branch Completed
当尝试在工作区中进行标记时,它工作正常,实际上附加了 HEAD,git refs 看起来很好,这可能是 Jenkins 尝试标记时在错误的工作目录中查找的问题吗?
有没有办法提取更详细的日志以及它如何尝试标记?
仅供参考 - 使用 Jenkins 2.81 和 swarm Linux 代理,最新的 Git 插件。
【问题讨论】: