Skip to content

A simple way to radiate jenkins build status using pure javascript

Notifications You must be signed in to change notification settings

svenmueller/jenkins-monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins Monitor

Jenkins Monitor shows the status of build in blue (building), red (failure), green (success) box on jenkins. By using jquery jsonp support and jenkins built-in jsonp reponse support, implementing this is just a piece of cake.

Furthermore it plays a sound when

Why

It's very important to radiate build status on jenkins(passively). So that everybody in the team can just raise your head a little bit and take a look at the builds on screen(it could be in big TV),whether it is red/blue/green. Also it borrows very similar metaphor from Test Driven Development rhythm. Red color box means that build is failed, someonebody in the team may need to take a look at it;Green means "yep, success";Blue means that build currently is building; Grey means that build is aborted or disabled.

Prototype

How to Use

git clone git://github.com/svenmueller/jenkins-monitor.git

Then copy or rename conf/config.js.sample to conf/config.js:

copy conf/config.js.sample conf/config.js

or

mv conf/config.js.sample conf/config.js

And open conf/config.js to change your jenkins ci address and jobs name you want to show on dashboard like following:

	var config = {
		ci_url: 'http://build.domain.de',
		jobs_to_be_filtered: ["job"],					# whitelist, optional, string or regular expression
		jobs_to_be_excluded: ["old-job","unused-job"],	# blacklist, optional, string or regular expression
		remove_string_in_name: "redundant-name" 		# shorten name, optional, string or regular expression 
	}

Then run from command line:

	open index.html -a "/Applications/Google Chrome.app"

Using Chrome or Safari is recommended. If you have lots of job, use Chrome and set browser zoom to the proper value so that you can see all the jobs at once (e.g. 25%).

About

A simple way to radiate jenkins build status using pure javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.9%
  • CSS 8.1%