Simple Dashing widget (and associated job) to display the current build status of a Jenkins server. When all jobs are fine a blue background with a thumbs-up icons is shown. When one or more jobs are in a failed state, they are listed on a red background. If culprits are available the user which has broken the build will also be shown. When the Speech Synthesis API is available on the browser it will say one of the predefined texts out loud every 5 minutes. See jenkins_build_status.coffee for the texts and the timeBetweenSounds parameter.
Calls are made to the Jenkins API to retrieve the build status and culprits if they are available.
Please leave a comment below or click on the star if you are using this widget :-)
Installing the widget
Create the folder
widgets/jenkins_build_status and put these files in it:
Place the following file in your
Configuring the widget for use with your Jenkins instance
There are a few parameters that must be set up before using this widget with your Jenkins instance.
In the jenkins_build_status.rb file, modify the following parameters according to your needs:
||Jenkins base URL|
||Jenkins user credentials|
Adding the Jenkins build status widget to your dashboard
To add this widget to your dashboard, add the following to your [Dashboard-filename].erb file:
<li data-row="1" data-col="1" data-sizex="2" data-sizey="1"> <div data-id="jenkinsBuildStatus" data-view="JenkinsBuildStatus" data-title="Jenkins"></div> </li>