jenkinsci/git-plugin — pull request #99 by smoyer (2012-09-30 03:54:11+00:00)
Title: Support for gitorious webhook

The default gitorious webhook mechanism sends a POST similar to http://pastebin.com/iEZDkWWR to a URL. It strips off any hard coded query parameters, so it wouldn't work with notifyCommit without help.

This commit adds a gitoriousNotifyCommit endpoint that will parse the default JSON payload and convert the repository URL into a usable form.

HTTP clone access for gitorious is done by adding "git." to the front of the hostname, but the payload URL doesn't come that way. So I added a check in looselyMatches in case someone is using HTTP access in jenkins.