jenkinsci/gitorious-plugin — pull request #1 by magno32 (2014-01-06 19:58:40+00:00)
Title: Added code to scan the GitoriousBrowsers to match the repository URL rep...

The repository in the Gitorious web-hook specifically points to the web-browseable repository. This is problematic if the Gitorious install is a local, private, installation. Meaning that the scm url in Jenkins is using the ssh format (git@git.exampleserver.com) will never be found by simply looking for the repository as it is reported in the web-hook.

This commit checks the projects to see if they have a gitoriousBrowser registered and compares it to the url reported by the web-hook, then triggers an SCM poll if available.

It would be awesome to not have to enable polling on the project to make this work, since it is just "one more thing" to do for each project, but I simply mimicked the doNotifyCommit in GitStatus, which also requires polling to be enabled.