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

Project building from tag builds at each polling interval

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: git-plugin
    • Labels:
    • Environment:
      Jenkins 1.565
      Git Client Plugin 1.8.1
      Git Plugin 2.2.1
    • Similar Issues:

      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

          drwille Daniel Wille created issue -
          markewaite Mark Waite made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 155864 ] JNJira + In-Review [ 195276 ]
          progman Alexey Ostrovsky made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          ndeloof Nicolas De Loof made changes -
          Assignee Nicolas De Loof [ ndeloof ]
          markewaite Mark Waite made changes -
          Status Reopened [ 4 ] Open [ 1 ]

            People

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

              Dates

              • Created:
                Updated: