AOEpeople/jenkins-hue

Name: jenkins-hue

Owner: AOE

Description: Node.js package to connect Jenkins and Philips Hue lights

Forked from: fbrandel/jenkins-hue

Created: 2018-01-23 10:44:19.0

Updated: 2018-02-01 08:23:10.0

Pushed: 2017-08-30 13:57:11.0

Homepage:

Size: 26

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Jenkins-Hue

Colors your Philips Hue Lights based on a Jenkins build state.

Installation
npm install jenkins-hue
Example
Configuration
var JenkinsHue = require('jenkins-hue');
var jenkinsHue = new JenkinsHue({
    jenkins: {
        host: 'http://ci.jruby.org'
    },
    hue: {
        host: '192.168.178.39',
        username: 'newdeveloper'
    }
});
Let there be light!
Single Jenkins Job:

Hue light with the ID '1' should reflect the build state (green, red, yellow, deactivated) of a given job:

jenkinsHue.setLightForJenkinsJob(1, 'jruby-dist-1_7');
Jenkins View:

Hue light reflects the state of the Jenkins view, which means all jobs available under the given host URL. If at least one build failed the light turns red.

jenkinsHue.setLightForJenkinsView(1);

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.