Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17273

Polling fails attempting to set an invalid tag before build

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins 1.480.3 on Ubuntu 10.04 Server, running on Tomcat 6 with Oracle JRE 6, 32 bits

      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

            ndeloof Nicolas De Loof
            jsotuyod Juan Sotuyo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: