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

Git plugin poll no longer detects changes (regression)

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • git-plugin
    • None

      I've updated jenkins and all plugins and now git can't poll my git branches anymore.

      Using strategy: Default
      [poll] Last Built Revision: Revision a1903aa4a6afd4dda0b7c136b21c7f374d9160f2 (refs/remotes/origin/project/develop)
      using GIT_SSH to set credentials
      > git --version # timeout=10
      > git -c core.askpass=true ls-remote -h git@server:stuff.git # timeout=10
      Found 67 remote heads on git@server:stuff.git
      Done. Took 1.4 sec
      No changes

      But running manually the ls-remote, not only there is no branch at all matching that hash, but the branch in question has clearly a different hash. I've seen other bugs complaining about the plugin picking the first or the last item, or picking from the right side, or doing whatever else incorrectly, but in this case it simply doesn't work at all

      git ls-remote -h git@server:stuff.git | grep a1903aa4a6afd4dda0b7c136b21c7f374d9160f2
      (nothing)

      git ls-remote -h git@server:stuff.git | grep a1903aa4a6afd4dda0b7c136b21c7f374d9160f2 | grep project
      653480bad16405e03c9a8e7adc938a4649665f5d refs/heads/project/develop

            Unassigned Unassigned
            davipt Bruno D. Rodrigues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: