This plugin builds pull requests in github and report results.

{jenkins-plugin-info:pluginId=ghprb}

Commands: 

When a new pull request is opened in the project and the author of the pull request isn't whitelisted, builder will ask "Can one of the admins verify this patch?".

If the build fails for other various reasons you can rebuild.

Installation:

Creating job:

If you want to manually build the job, in the job setting check "This build is parameterized" and add string parameter named "sha1". When starting build give the "sha1" parameter commit id you want to build or refname (eg: "origin/pr/9/head").

Changelog

1.9

Added job specific triggers.
Added more informations as job parameters.
Fix support for gh-ent token generation. JENKINS-17334
Lookup PR detailed information for each PR. JENKINS-17852
Fix closing PR.
various bugfixes

1.8

Support autoclose at build level
add pull id and target branch to environment variables
fix GitHub Hooks when authentication is required on Jenkins
various bugfixes and improvements

1.7

implemented support for GitHub hooks
added button for generating api token

1.6

option for specifing how to mark unstable builds in github
Close failed pull requests automatically if plugin admin configured it
customizeable pass/fail comments
Refactoring of code
help description in Jenkins configuration

1.5

checkbox enabling sending comments when update of comment status fails
option to enter organisations which members are whitelisted
support for enterprise Git Hub
link to pullrequest into build description
fixes

1.4

Changed comment commands - phrases for testing once, pullrequest or add user to whitelist
"test this please" starts new build
"ok to test" allow pullrequest for building
"add to whitelist" add user to whitelist

1.3

Add published URL feature.
Enable connection to github enterprise instances.
Enable authentication via a token.
When automatic merge is possible, build the merge.

1.2

Use commit status api instead of comments for reporting results.