This plugin builds pull requests in github and report results.

{jenkins-plugin-info:pluginId=ghprb}

When new pull request occures in project and author of the pull request isn't whitelisted, builder will ask "Can one of the admins verify this patch?" and one of the admins must add the author to whitelist with comment "this is ok to test".

If author of the pull request is whitelisted adding new pull request or new commit to existing pull request will start new rebuild.

New rebuild can be started also with comment "retest this please".

Installation:

create github 'bot' user for commenting in pull requests
add the bot as colabolator to your repository

install plugin
go to administration -> system setting -> Github pull requests builder section
set your bot github username and password
add github usernames of admins (will be used for all jobs)
you can modify phrase for adding users to whitelist (advanced)
you can modify phrase for retesting (advanced)
you can specify crontab line click (advanced)
save

Creating job:

create new job
add github url to "GitHub project" field
select Git SCM
add your github "Repository URL"
into (advanced) "refspec" enter:

+refs/pull/*:refs/remotes/origin/pr/*

into "Branch Specifier" enter:

${sha1}

check "Github pull requests builder"
you can edit admins for this specific job
you can change crontab line for this specific job (advanced)
you can edit whitelisted users (advanced)
save

You are done (smile)

Changelog

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.