emergency
v0.0.2
Published
Turn on a spinning red light when a dire situation arises, like a build breaking.
Downloads
8
Maintainers
Readme
emergency
Turn on a spinning red light when a dire situation arises, like a build breaking.
Installing
npm install emergency
cp config.example.json config.json
nano config.json
(see Configuration below)
Running
sudo node .
Configuration
- checkFrequency how long to wait between polling a job, in milliseconds
- cooldownTimeout how long to wait to turn off the light automatically after it turns on (if a successful build doesn't turn it off first), in milliseconds
- gpio.pin physical pin number of the output pin connected to the + in terminal on your relay
- jobs[].name descriptive name of a job, used in logging
- jobs[].url URL of your Jenkins job, looks like
http://build.corp.com/job/mybuild
, and will have/lastBuild/api/json
appended to check the build status