1.1.1 • Published 8 years ago
jenkins-status-shaker v1.1.1
jenkins status shaker
This awesome tool mix all status from a given list of Jenkins jobs and views and give you only one global state. More it will give you the global working status of your jobs which can be true or false depending if one or more jobs are currently building.
Install :
npm install jenkins-status-shaker
Example :
var JenkinsStatusShaker = require('jenkins-status-shaker');
var shaker = JenkinsStatusShaker.init('jenkins.mydomain.com', 'username', 'password'); // username and password are optional
shaker.setJobs(['job1', 'job2', 'job3']);
shaker.setViews(['view1', 'view2']);
shaker.onStatusReceived(function(status) {
// status look like { status: 'SUCCESS', working: true }
});
shaker.getStatus();