jenkins-hue

0.5.0 • Public • Published

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);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.5.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.5.0
    0
  • 0.3.0
    0
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i jenkins-hue

Weekly Downloads

0

Version

0.5.0

License

Apache-2.0

Last publish

Collaborators

  • fbrandel