Skip to content

A simple way to radiate jenkins build status using pure javascript

Notifications You must be signed in to change notification settings

agiledivider/jenkins-monitor

 
 

Repository files navigation

Jenkins Monitor

A project aims at helping you show status of build in blue(building), red(failure), green(success) box on jenkins. It willl also show additional information about unstable builds in a row. By using jquery jsonp support and jenkins built-in jsonp reponse support, implementing this is just a piece of cake.

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/cogitatio/jenkins-monitor.git

Then open dashboard.html to change your jenkins ci address and jobs name you want to show on dashboard like following:

new jenkinsDashboard({
	// the url of the Jenkins Server
	jenkinsUrl: 'ci.qa.local',
	// Path to the view, that shall be displayed
	view: "/view/All",
	// the css selector or dom object to which the Dashboard will be renderd. Default is document.body (full screen)
	el: document.body, 
	// jobs to be shown, if [] all jobs of the view are shown
	showOnlyJobs: [],                      
        hideJobs: ['Unimportant Test'], // jobs to be excluded
        updateInterval: 4000, // in milliseconds
        buildOptions: {
            'Trunk Nightly' : {
                'ageWarning' : 3600*24,
                'ageError' : 3600 * 24 * 3
            }
        }
	});

Then run from command line:

	open dashboard.html -a safari

Contribute

This project is still working in progress. Suggestions? Email to: [email protected]

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 100.0%