Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A quick'n'dirty sinatra app to only trigger a build for the branches we are interested in
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public
tmp
.gitignore
Gemfile
Gemfile.lock
README.md
config.local.rb-example
config.ru
jenkins_github_hook.rb

README.md

Jenkins Github Hook

A simple sinatra app to relay Github post receive hook notifications on to Jenkins to trigger a new build. I built this because Jenkins was triggering a new build everytime something is checked in on any branch.

This uses a tiny bit of logic to decide if the referenced commit relates to a branch we're interested in building, and if so, sends a post on to the jenkins build server.

This most probably would have been best written as a Jenkins plugin, but I know Ruby best so this was quickest for me.

Something went wrong with that request. Please try again.