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

Git plugin polls incorrect branch

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Component/s: git-plugin
    • Labels:
    • Environment:
      Git Plugin 2.2.7, Jenkins 1.509.2
    • Similar Issues:

      Description

      I have a job configured with "branches to build" as "origin/release/flow". The polling log shows that the git plugin is erroneously only using the last component of the branch name to poll:

      git ls-remote -h git@github.mycompany.lan:org/Repo.git flow # timeout=10

      This matches six branches on the server. The plugin uses the first one, which is "refs/heads/appstore/flow". The hashes never match, so the plugin triggers the build every time.

      As a workaround I've changed "branches to build" to "refs/heads/release/flow", but this should be fixed.

        Attachments

          Activity

          n8gray Nathan Gray created issue -
          markewaite Mark Waite made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 159554 ] JNJira + In-Review [ 196122 ]
          markewaite Mark Waite made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              ndeloof Nicolas De Loof
              Reporter:
              n8gray Nathan Gray
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: