Parameters in git webhooks

XMLWordPrintable

      I'd like to have git variables injected in webhooks functionality so I could notify branch specific resourses, etc.

      I.e, jenkins trigger works this way: you just add wehook for specific git repo

      http://myjenkins/git/notifyCommit?url=http://192.168.12.88:7990/scm/test/test.git

      I'd like to see, i.e, some variable for branch name so I could create a webhook that triggers jenkins jobs for specific branches, something like:

      http://myjenkins/git/notifyCommit?url=http://192.168.12.88:7990/scm/test/test.git&branch=${BRANCH_NAME}

      where BRANCH_NAME would be replaced with actual branch name.

       

            Assignee:
            Unassigned
            Reporter:
            Alaiksei Savanchuk
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: