hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-WOW - Dev-872 is invalid

Jenkins JIRA | Edward Hartwell Goose | 4 years ago
  1. 0

    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

    Jenkins JIRA | 4 years ago | Edward Hartwell Goose
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-WOW - Dev-872 is invalid
  2. 0

    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

    Jenkins JIRA | 4 years ago | Edward Hartwell Goose
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-WOW - Dev-872 is invalid
  3. 0

    Jenkins tag name is invalid

    Stack Overflow | 4 years ago | ShatyUT
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Push Notifications API (Master)-3 is invalid
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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

    Jenkins JIRA | 4 years ago | Juan Sotuyo
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Vox Populy Web-174 is invalid
  6. 0

    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

    Jenkins JIRA | 4 years ago | Juan Sotuyo
    hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidTagNameException: tag name jenkins-Vox Populy Web-174 is invalid

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.eclipse.jgit.api.errors.InvalidTagNameException

      tag name jenkins-WOW - Dev-872 is invalid

      at org.eclipse.jgit.api.TagCommand.processOptions()
    2. JGit - Core
      TagCommand.call
      1. org.eclipse.jgit.api.TagCommand.processOptions(TagCommand.java:198)
      2. org.eclipse.jgit.api.TagCommand.call(TagCommand.java:112)
      2 frames
    3. org.jenkinsci.plugins
      JGitAPIImpl.tag
      1. org.jenkinsci.plugins.gitclient.JGitAPIImpl.tag(JGitAPIImpl.java:175)
      1 frame
    4. Hudson GIT plugin
      GitSCM$4.invoke
      1. hudson.plugins.git.GitAPI.tag(GitAPI.java:220)
      2. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1239)
      3. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1196)
      3 frames
    5. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:865)
      2. hudson.FilePath.act(FilePath.java:838)
      2 frames
    6. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1196)
      1 frame
    7. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1353)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683)
      2 frames
    8. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      1 frame
    9. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588)
      2. hudson.model.Run.execute(Run.java:1567)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:237)
      5 frames