a0s / jenkins-control-by-pull-requests

Starts jenkins job on Github's pull request changes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a new webhook on Github with parameters:

  • Payload URL http://YOUR_EXTERNAL_IP:9999/github-webhook

  • Content type application/json

  • Secret YOUR_SECRET_KEY

  • Which events would you like to trigger this webhook? Enable Pull request

Then starts the server:

bundle install
GITHUB_HOOK_SECRET="YOUR_SECRET_KEY" rackup --host YOUR_EXTERNAL_IP --port 9999

About

Starts jenkins job on Github's pull request changes


Languages

Language:Ruby 100.0%