Skip to content
/ jambel Public

three color signal light for monitoring software build status

Notifications You must be signed in to change notification settings

jambit/jambel

Repository files navigation

jambel

three color signal light for monitoring software build status

Usage

Download the binaries of the jambel control.

The file /etc/jambel.json is used for configuring the Jambel. All jobs that are mapped onto this Jambel are listed in jobs. This includes:

  • the URL of the Jenkins job
  • the update mode of the job, or how he obtains status updates (either the Jenkins instance POSTs updates or the job URL is polled)
  • if the job is polled, the polling interval can be configured The signal light configuration includes the following items:
  • the position of the green light (top vs. bottom)
  • the host and port of the signal light
  • the timeout that is used when waiting for a reply and upon establishing a TCP connection
  • the interval after which the current light status is resent in order to keep the signal light alive. Thus, the signal light can be switched off and on again and receive a new status update without a new build needing to happen Furthermore, the port of the web interface can be configured.

The app must be started within the jambel folder with the command bin/jambel.

The web interface of the Jambel can be found at http://<HOSTNAME>:<HTTP-PORT>/web/. It can be used to see the last statuses of the jobs, the last sent configuration of the signal light and to reset the signal light.

Configuring the Jenkins for POSTing

Add the Notification Plugin to each Jenkins that shall post its jobs' states to this server. In the configuration of each job, add an HTTP Notification Endpoint that POSTs to http://<HOSTNAME-OF-JAMBEL-SERVER>:<PORT>/web/jobStatusUpdate.

Contributing

The project is built with Gradle. Use the commited Gradle wrapper script to obtain Gradle. Type ./gradlew tasks to get an overview of executable Gradle tasks. The task distZip is used to build a ZIP file that can be distributed.

Modules

The jambel control consists of the following five modules:

  1. config: loads configuration from a JSON file and hosts the configuration classes for other modules
  2. signallight: allows controlling a signal light, like configuring blink times, setting individual light statuses, and retrieving the current status; depends on config module
  3. hub: Contains the logic of retrieving intial job statuses, aggregating multiple job statuses, and using a signal light for displaying the aggregated state; depends on config and signallight modules
  4. server: Sets up the jambel as a standalone web application using Jetty. Offers a simple web interface and an endpoint for HTTP POSTs of the Jenkins Notification plugin; depends on config and hub modules

Potential extensions

Here is a list of ideas what to improve:

About

three color signal light for monitoring software build status

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published