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

Project building from tag builds at each polling interval

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • git-plugin
    • Jenkins 1.565
      Git Client Plugin 1.8.1
      Git Plugin 2.2.1

    Description

      I have a job I changed to build from a tag. However, I'd left the polling enabled. I noticed that the job built every time that it polled. The polling log shows:

      Started on Jun 3, 2014 7:20:00 PM
      Using strategy: Default
      [poll] Last Built Revision: Revision aacfd8d1828633ccfb7ced255e795a29e31d6228 (mytag)
      > git ls-remote -h git@hostname:my/project mytag
      Done. Took 0.39 sec
      Changes found

      I noticed that the ls-remote command is being passed "-h", which I believe is causing the issue. The -h would exclude tags. Thus:

      $ git ls-remote -h git@hostname:my/project mytag

      Yields no results, but removing the "-h":

      $ git ls-remote git@hostname:my/project mytag
      aacfd8d1828633ccfb7ced255e795a29e31d6228 refs/tags/mytag

      Attachments

        Activity

          markewaite Mark Waite added a comment -

          progman No plans to fix this bug at this time. You're welcome to submit a pull request with automated tests which show the problem, and with a fix for the problem.

          markewaite Mark Waite added a comment - progman No plans to fix this bug at this time. You're welcome to submit a pull request with automated tests which show the problem, and with a fix for the problem.

          Are there any plans to fix that small but annoying bug?

          progman Alexey Ostrovsky added a comment - Are there any plans to fix that small but annoying bug?
          peterjones Peter Jones added a comment -

          +1
          I have same request and am hitting same limitation where I cannot trigger a build just from a tag change (non-annotated tag).

          Will the use of annotated tags get around this limitation ?

          peterjones Peter Jones added a comment - +1 I have same request and am hitting same limitation where I cannot trigger a build just from a tag change (non-annotated tag). Will the use of annotated tags get around this limitation ?

          It appears not working.
          I have Jenkins - 2.27
          Git Client Plugin - 2.0.0
          Git Plugin - 3.0.0

          Project configured to build from "refs/tags/ci-qa"
          But polling is still running with '-h'.
          As result build is not initiated when revision of tag is changed.

          progman Alexey Ostrovsky added a comment - It appears not working. I have Jenkins - 2.27 Git Client Plugin - 2.0.0 Git Plugin - 3.0.0 Project configured to build from "refs/tags/ci-qa" But polling is still running with '-h'. As result build is not initiated when revision of tag is changed.

          Code changed in jenkins
          User: Mark Waite
          Path:
          pom.xml
          src/test/java/hudson/plugins/git/CliGitSCMTriggerRemotePollTest.java
          http://jenkins-ci.org/commit/git-plugin/12351a2ef8dc726144ae5e6234f0e240fc4a5977
          Log:
          Adapt tests for JENKINS-23299 fix and git-client-plugin 1.10.2

          Intentionally skip one test, enable another

          Depend on git-client-plugin 1.10.2

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: pom.xml src/test/java/hudson/plugins/git/CliGitSCMTriggerRemotePollTest.java http://jenkins-ci.org/commit/git-plugin/12351a2ef8dc726144ae5e6234f0e240fc4a5977 Log: Adapt tests for JENKINS-23299 fix and git-client-plugin 1.10.2 Intentionally skip one test, enable another Depend on git-client-plugin 1.10.2

          People

            Unassigned Unassigned
            drwille Daniel Wille
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: