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 :-)
Create the folder widgets/jenkins_build_status
and put these files in it:
jenkins_build_status.coffee
jenkins_build_status.html
jenkins_build_status.scss
Place the following file in your jobs/
folder:
jenkins_build_status.rb
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:
Parameter | Meaning |
---|---|
JENKINS_URI |
Jenkins base URL |
JENKINS_AUTH |
Jenkins user credentials |
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>
@bemosior Thanks for sharing the fix. I will update the script.
@meichau I'll add the MIT license