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

[REGRESSION] Git fails to trigger from polling for refs/heads/ style branch name

      Polling does not work when the specified branch is of the form refs/heads/feature/myfeature

      Expected:

      [poll] Last Built Revision: Revision abcdef1234 (refs/remotes/origin/feature/myfeature)
      using GIT_SSH to set credentials Git Credentials
       > git --version # timeout=10
       > git ls-remote -h ssh://server/git/project.git refs/heads/feature/myfeature # timeout=10
      [poll] Latest remote head revision is: defabc4321
      Done. Took 1.8 sec
      Changes found
      

      Actual:

      [poll] Last Built Revision: Revision abcdef1234 (refs/remotes/origin/feature/myfeature)
      using GIT_SSH to set credentials Git Credentials
       > git --version # timeout=10
       > git ls-remote -h ssh://server/git/project.git # timeout=10
      Done. Took 1.8 sec
      

      Workaround:
      Downgrade to Git-Plugin 2.3.4

          [JENKINS-28506] [REGRESSION] Git fails to trigger from polling for refs/heads/ style branch name

          Thomas Suckow created issue -
          Thomas Suckow made changes -
          Description Original: Expected:
          ```
          [poll] Last Built Revision: Revision abcdef1234 (refs/remotes/origin/feature/myfeature)
          using GIT_SSH to set credentials Git Credentials
           > git --version # timeout=10
           > git ls-remote -h ssh://we16705.pnl.gov/git/watchmen.git refs/heads/feature/myfeature # timeout=10
          [poll] Latest remote head revision is: defabc4321
          Done. Took 1.8 sec
          Changes found
          ```

          Actual:
          ```
          [poll] Last Built Revision: Revision abcdef1234 (refs/remotes/origin/feature/myfeature)
          using GIT_SSH to set credentials Git Credentials
           > git --version # timeout=10
           > git ls-remote -h ssh://we16705.pnl.gov/git/watchmen.git # timeout=10
          Done. Took 1.8 sec
          ```

          Workaround:
          Downgrade to Git-Plugin 2.3.4
          New: Expected:
          {code}
          [poll] Last Built Revision: Revision abcdef1234 (refs/remotes/origin/feature/myfeature)
          using GIT_SSH to set credentials Git Credentials
           > git --version # timeout=10
           > git ls-remote -h ssh://server/git/project.git refs/heads/feature/myfeature # timeout=10
          [poll] Latest remote head revision is: defabc4321
          Done. Took 1.8 sec
          Changes found
          {code}

          Actual:
          {code}
          [poll] Last Built Revision: Revision abcdef1234 (refs/remotes/origin/feature/myfeature)
          using GIT_SSH to set credentials Git Credentials
           > git --version # timeout=10
           > git ls-remote -h ssh://server/git/project.git # timeout=10
          Done. Took 1.8 sec
          {code}

          Workaround:
          Downgrade to Git-Plugin 2.3.4
          Thomas Suckow made changes -
          Description Original: Expected:
          {code}
          [poll] Last Built Revision: Revision abcdef1234 (refs/remotes/origin/feature/myfeature)
          using GIT_SSH to set credentials Git Credentials
           > git --version # timeout=10
           > git ls-remote -h ssh://server/git/project.git refs/heads/feature/myfeature # timeout=10
          [poll] Latest remote head revision is: defabc4321
          Done. Took 1.8 sec
          Changes found
          {code}

          Actual:
          {code}
          [poll] Last Built Revision: Revision abcdef1234 (refs/remotes/origin/feature/myfeature)
          using GIT_SSH to set credentials Git Credentials
           > git --version # timeout=10
           > git ls-remote -h ssh://server/git/project.git # timeout=10
          Done. Took 1.8 sec
          {code}

          Workaround:
          Downgrade to Git-Plugin 2.3.4
          New: Polling does not work when the specified branch is of the form refs/heads/feature/myfeature

          Expected:
          {code}
          [poll] Last Built Revision: Revision abcdef1234 (refs/remotes/origin/feature/myfeature)
          using GIT_SSH to set credentials Git Credentials
           > git --version # timeout=10
           > git ls-remote -h ssh://server/git/project.git refs/heads/feature/myfeature # timeout=10
          [poll] Latest remote head revision is: defabc4321
          Done. Took 1.8 sec
          Changes found
          {code}

          Actual:
          {code}
          [poll] Last Built Revision: Revision abcdef1234 (refs/remotes/origin/feature/myfeature)
          using GIT_SSH to set credentials Git Credentials
           > git --version # timeout=10
           > git ls-remote -h ssh://server/git/project.git # timeout=10
          Done. Took 1.8 sec
          {code}

          Workaround:
          Downgrade to Git-Plugin 2.3.4
          Mark Waite made changes -
          Summary Original: [REGRESSION] Git fails to trigger from polling New: [REGRESSION] Git fails to trigger from polling for refs/heads/ style branch name

          Mark Waite added a comment - - edited

          I believe the breaking change between 2.3.4 and 2.3.5 is 85463e9. More investigation is needed.

          The investigation is proceeding on my forked copy of the repository in branches named "master-JENKINS-28506*".

          Mark Waite added a comment - - edited I believe the breaking change between 2.3.4 and 2.3.5 is 85463e9 . More investigation is needed. The investigation is proceeding on my forked copy of the repository in branches named "master- JENKINS-28506 *".
          Mark Waite made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Mark Waite made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ] New: Mark Waite [ markewaite ]
          Oleg Nenashev made changes -
          Remote Link New: This issue links to "git-plugin/pull/324 (Web Link)" [ 12915 ]

          Oleg Nenashev added a comment -

          Added the pull request link

          Oleg Nenashev added a comment - Added the pull request link
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ] New: Nicolas De Loof [ ndeloof ]

            ndeloof Nicolas De Loof
            thomassuckow Thomas Suckow
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: