我使用Hudson克隆Git存储库并构建它。我收到以下错误:为什么哈德森/詹金斯试图提交?
FATAL: Could not apply tag jenkins-mus-tomcat-2-2
hudson.plugins.git.GitException: Could not apply tag jenkins-mus-tomcat-2-2
这很奇怪,因为我不希望哈德森提交任何提交。它只应该拉和编译。
什么问题,我该如何解决?
我使用Hudson克隆Git存储库并构建它。我收到以下错误:为什么哈德森/詹金斯试图提交?
FATAL: Could not apply tag jenkins-mus-tomcat-2-2
hudson.plugins.git.GitException: Could not apply tag jenkins-mus-tomcat-2-2
这很奇怪,因为我不希望哈德森提交任何提交。它只应该拉和编译。
什么问题,我该如何解决?
选中“源代码管理”一节中“高级...”下的“跳过内部标签”配置。
它会跳过标记。
注:Hudson bug 3874提到:
tagging fails if there's no
~/.gitconfig
, and you get the following error:
workspace] $ git tag -a -f -m "Hudson Build #34" hudson-JAMCircle-34
FATAL: Could not apply tag hudson-JAMCircle-34
请确保您有用于运行哈德森过程中,用户定义的首页,并确保有一个.gitconfig
,在它定义至少user.name (见这blog post for instance)。
如果需要,通过GIT_COMMITTER_NAME
,GIT_COMMITTER_EMAIL
,GIT_AUTHOR_NAME
和GIT_AUTHOR_EMAIL
环境变量(Cf this example)在哈德森本身内配置这些变量。
话虽这么说,考虑到issue HUDSON-5676,你应该有一个选项“标签每自动生成”,你可以更改为不加以控制,以避免完全的标签。