10

I'm using Hudson to clone a Git repository and build it. I'm getting the following error:

FATAL: Could not apply tag jenkins-mus-tomcat-2-2
hudson.plugins.git.GitException: Could not apply tag jenkins-mus-tomcat-2-2

It's strange because I don't want Hudson to make any commits. It should only pull and compile.

What's the problem and how can I fix it?

Ryan Kohn
  • 13,079
  • 14
  • 56
  • 81
fedor.belov
  • 22,343
  • 26
  • 89
  • 134

2 Answers2

20

Check "Skip internal tag" config under "Advanced..." in section "Source code management".

It will skip the tagging.

ympostor
  • 909
  • 7
  • 16
J-16 SDiZ
  • 26,473
  • 4
  • 65
  • 84
2

Note: the Hudson bug 3874 mentions:

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

Make sure you have a HOME defined for the user running the Hudson process, and make sure there is a .gitconfig, with at least user.name defined in it (See this blog post for instance).
If needed, configure those variables within Hudson itself through GIT_COMMITTER_NAME, GIT_COMMITTER_EMAIL, GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL environment variables (Cf this example).


That being said, considering the issue HUDSON-5676 , you should have an option "Tag every build automatically" that you can change to unchecked, in order to avoid the tag entirely.

knocte
  • 16,941
  • 11
  • 79
  • 125
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250