Skip to content

colinnewell/Unicorn-Build-Indicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unicorn-Build-Indicator

This is a simple jenkins build check that makes use of the Unicorn Hat from PiMoroni plugged into a Raspberry Pi running raspbian.

This relies on the C daemon from the UnicornHat repository being installed. Once this is installed install the perl dependencies you need using these commands,

  sudo apt-get install cpanminus libssl-dev
  cpanm Jenkins::API List::Util
  # now go for a meal, this may take a while.
  # repeat the previous command if it fails,
  # the depedendency chain doesn't appear to be perfect when installing on the Pi.

Then run the script with the url, the username and auth token. If you don't require authorization on your jenkins ommit the username and password.

jenkins_status.pl http://jenkins:8080/ user authtoken

The simplest thing to do then is to run the script in a cron job.

The script is currently setup to check the views on the Jenkins and check all the jobs pass their tests. That allows us to avoid jobs we don't care about by not having them in views.

About

Raspberry Pi Unicorn Hat Jenkins build indicator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages