Add notifyCommit capability to the Github plugin

XMLWordPrintable

    • Type: New Feature
    • Resolution: Done
    • Priority: Minor
    • Component/s: plugin-proposals
    • None

      It would be great if the Github plugin had a notifyCommit endpoint similar to the one provided by the Subversion plugin. The endpoint would be written to process Github's post receive notifications as described here: http://help.github.com/post-receive-hooks/

      In contrast to the Subversion plugin where the URL is /subversion/

      {UUID}

      /notifyCommit?rev=

      {REV}

      , I think that because of the payload used by Github's post receive hook it would be sufficient to have a single /github/notifyCommit endpoint that could deal with submissions from any Github repository, not just a single repo as in the Subversion case. Beyond that, the mechanics of the Subversion and Github cases should be pretty similar; the endpoint should accept and unauthenticated POST and the build should be required to have "Poll SCM" enabled.

      The reason that I propose putting this into github-plugin as opposed to git-plugin is that the URL normalization required to recognize that the repo in the job config is the same as the one in the post-receive payload is Github-specific. The required normalization is already implemented by the existing github-plugin.

            Assignee:
            Kohsuke Kawaguchi
            Reporter:
            Mike Dillon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: