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

SCM Poll fails if no hudson-* tag exists

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • None
    • Platform: All, OS: All

      After the first clone of a repository for a new job, the Git module runs 'git
      tag l hudson*' to look for existing tags. Since there are none yet the command
      fails and exits with a non-zero return code (1). At this point the job fails
      rather than running the job and creating a tag for the next poll cycle. Manually
      creating a tag enabled the next poll to succeed and kick off the job.

      [workspace] $ git tag l hudson*
      FATAL: Error performing git tag l hudson*
      hudson.plugins.git.GitException: Error performing git tag l hudson*
      at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:282)
      at hudson.plugins.git.GitAPI.getHudsonTags(GitAPI.java:292)
      at hudson.plugins.git.GitSCM.branchesThatNeedBuilding(GitSCM.java:431)
      at hudson.plugins.git.GitSCM.access$100(GitSCM.java:44)
      at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:271)
      at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:235)
      at hudson.FilePath.act(FilePath.java:552)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:235)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:807)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:313)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:265)
      at hudson.model.Run.run(Run.java:899)
      at hudson.model.Build.run(Build.java:112)
      at hudson.model.ResourceController.execute(ResourceController.java:93)
      at hudson.model.Executor.run(Executor.java:119)
      Caused by: hudson.plugins.git.GitException: Command returned status code 1:
      at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:277)
      ... 14 more

            abayer Andrew Bayer
            ilikeimac ilikeimac
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: