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

Git commit notification does not work for references

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • Jenkins 2.46.1
      git plugin 3.3.0

      I have several jobs configured with a branch specifier like refs/heads/<branch>. A post-receive hook from a git server triggers jobs by sending something like http://<jenkins server>/git/notifyCommit?url=<git server>:<git repo>&branches=<branchName> to jenkins. The jobs are triggered if branch branchName is e.g. master but it does not work if branchName is refs/heads/master. I have checked the git polling protocol in jenkins.

          [JENKINS-43766] Git commit notification does not work for references

          Hi tgb

          Can you try configuring the branch name as */master.
          It'll fix your problem.

          tulasinadh vaka added a comment - Hi tgb Can you try configuring the branch name as */master. It'll fix your problem.

            Unassigned Unassigned
            tgb Ralf Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: