hudson.plugins.git.GitException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The way tags for builds are created seems to have recently changed producing a break. My job name includes spaces, and up to recently, tags replaced spaces with underscores. Now the behavior has changed, and the spaces are left, therefore making it an invalid tag. For instance. My job name is "Vox Populy Web". Formerly tags wwhere "jenkins-Vox_Populy_Web-revision". Nowadays, it's "jenkins-Vox Populy Web-revision" Stacktrace as follows: FATAL: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Vox Populy Web-174 is invalid hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Vox Populy Web-174 is invalid at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:179) at hudson.plugins.git.GitAPI.tag(GitAPI.java:220) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1239) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196) at hudson.FilePath.act(FilePath.java:852) at hudson.FilePath.act(FilePath.java:834) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1196) at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:590) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:495) at hudson.model.Run.execute(Run.java:1502) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Vox Populy Web-174 is invalid at org.eclipse.jgit.api.TagCommand.processOptions(TagCommand.java:198) at org.eclipse.jgit.api.TagCommand.call(TagCommand.java:112) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:175) ... 14 more
    via by Juan Sotuyo,
  • The way tags for builds are created seems to have recently changed producing a break. My job name includes spaces, and up to recently, tags replaced spaces with underscores. Now the behavior has changed, and the spaces are left, therefore making it an invalid tag. For instance. My job name is "Vox Populy Web". Formerly tags wwhere "jenkins-Vox_Populy_Web-revision". Nowadays, it's "jenkins-Vox Populy Web-revision" Stacktrace as follows: FATAL: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Vox Populy Web-174 is invalid hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Vox Populy Web-174 is invalid at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:179) at hudson.plugins.git.GitAPI.tag(GitAPI.java:220) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1239) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196) at hudson.FilePath.act(FilePath.java:852) at hudson.FilePath.act(FilePath.java:834) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1196) at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:590) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:495) at hudson.model.Run.execute(Run.java:1502) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Vox Populy Web-174 is invalid at org.eclipse.jgit.api.TagCommand.processOptions(TagCommand.java:198) at org.eclipse.jgit.api.TagCommand.call(TagCommand.java:112) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:175) ... 14 more
    via by Juan Sotuyo,
  • Jenkins tag name is invalid
    via Stack Overflow by ShatyUT
    ,
  • I just upgraded our git-client-plugin from 1.0.2 to 1.0.4 and now get an InvalidTagNameException. We were running Jenkins 1.505. The exception implies I've created a tag, which I certainly haven't, so I'm not sure how the issue is occurring. I'm assuming the issue is because the tag it believes it is receiving contains spaces. Here's the stacktrace: Using strategy: Default Last Built Revision: Revision b6db3c79b4f208e6989e4f10f00f564d189b7590 (origin/develop) Fetching changes from 1 remote Git repository Commencing build of Revision 8862b04b711a283d4e53962cc60e9b4203807d3a (origin/develop) Checking out Revision 8862b04b711a283d4e53962cc60e9b4203807d3a (origin/develop) FATAL: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-WOW - Dev-872 is invalid hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-WOW - Dev-872 is invalid at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:179) at hudson.plugins.git.GitAPI.tag(GitAPI.java:220) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1239) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1196) at hudson.model.AbstractProject.checkout(AbstractProject.java:1353) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588) at hudson.model.Run.execute(Run.java:1567) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-WOW - Dev-872 is invalid at org.eclipse.jgit.api.TagCommand.processOptions(TagCommand.java:198) at org.eclipse.jgit.api.TagCommand.call(TagCommand.java:112) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:175) ... 14 more
    via by Edward Hartwell Goose,
  • I just upgraded our git-client-plugin from 1.0.2 to 1.0.4 and now get an InvalidTagNameException. We were running Jenkins 1.505. The exception implies I've created a tag, which I certainly haven't, so I'm not sure how the issue is occurring. I'm assuming the issue is because the tag it believes it is receiving contains spaces. Here's the stacktrace: Using strategy: Default Last Built Revision: Revision b6db3c79b4f208e6989e4f10f00f564d189b7590 (origin/develop) Fetching changes from 1 remote Git repository Commencing build of Revision 8862b04b711a283d4e53962cc60e9b4203807d3a (origin/develop) Checking out Revision 8862b04b711a283d4e53962cc60e9b4203807d3a (origin/develop) FATAL: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-WOW - Dev-872 is invalid hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-WOW - Dev-872 is invalid at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:179) at hudson.plugins.git.GitAPI.tag(GitAPI.java:220) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1239) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1196) at hudson.model.AbstractProject.checkout(AbstractProject.java:1353) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588) at hudson.model.Run.execute(Run.java:1567) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-WOW - Dev-872 is invalid at org.eclipse.jgit.api.TagCommand.processOptions(TagCommand.java:198) at org.eclipse.jgit.api.TagCommand.call(TagCommand.java:112) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:175) ... 14 more
    via by Edward Hartwell Goose,
    • hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Vox Populy Web-174 is invalid at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:179) at hudson.plugins.git.GitAPI.tag(GitAPI.java:220) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1239) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196) at hudson.FilePath.act(FilePath.java:852) at hudson.FilePath.act(FilePath.java:834) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1196) at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:590) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:495) at hudson.model.Run.execute(Run.java:1502) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Vox Populy Web-174 is invalid at org.eclipse.jgit.api.TagCommand.processOptions(TagCommand.java:198) at org.eclipse.jgit.api.TagCommand.call(TagCommand.java:112) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:175) ... 14 more
    No Bugmate found.