Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.4 KB

File metadata and controls

31 lines (23 loc) · 1.4 KB

Jenkins failed build warning light

This Python script polls a Jenkins View and starts an alarm on the C.H.I.P. (http://getchip.com) when any build is Failed or Unstable. An Extreme Feedback device for Jenkins!

Works well with the Jenkins build monitor: https://wiki.jenkins-ci.org/display/JENKINS/Build+Monitor+Plugin

Based on: http://www.instructables.com/id/Pocket-Chip-How-to-Make-Blinking-a-Led/?ALLSTEPS

Demo:

Demo of the extreme feedback Jenkins flashing light

Wiring diagram:

I hooked up a small relay toggling a flashing, rotating warning light. Hook it up to Vcc, Ground, XIO-P4.

How to use it:

sudo ntpdate pool.ntp.org
sudo apt-get update
sudo apt-get install git build-essential python-dev python-pip -y

git clone git://github.com/xtacocorex/CHIP_IO.git
cd CHIP_IO
sudo python setup.py install
cd ..
sudo rm -rf CHIP_IO

git clone git://github.com/joepweijers/jenkins-failed-build-warning-light.git
cd jenkins-failed-build-warning-light
pip install -r requirements.txt
sudo python jenkins-failed-build-warning-light.py http://jenkins.example.com/view/YourView