Making noise with HTML5 browsers
This recipe describes how to send a custom to a Jenkins user's browser when an event occurs, such as a successful build. You can also send sound messages at arbitrary times. Not only is this good for developers who enjoy being shouted at, sang at by famous actors, and so on, but also for system administrators who are looking for a computer in a large server farm.
Getting ready
Install the sounds plugin (https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Sounds+plugin). Make sure that you have a compliant web browser installed, such as a current version of Firefox or Chrome.
Note
For more details of HTML5 compliancy in browsers, consider reviewing: http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29.
How to do it...
- Log in as a Jenkins administrator and visit the
Configure System
screen/configure
. - Under the
Jenkins Sound
section, checkPlay through HTML5 Audio enabled Browser
.
Note
If Jenkins has problems finding the sound archive with an error...