O'Reilly logo

Jenkins: The Definitive Guide by John Ferguson Smart

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

More Advanced Email Notification

By default, Jenkins email notification is a rather blunt tool. Notification messages are always sent to basically the same group of people. You cannot send messages to different people depending on what went wrong, or implement any sort of escalation policy. It would be useful, for example, to be able to notify the developers who committed changes the first time a build breaks, and send a different message to the team lead or the entire team if the build breaks a second time

The Email-ext plugin lets you define a more refined email notification strategy. This plugin adds an Editable Email Notification checkbox (see Figure 8-2), which effectively replaces the standard Jenkins email notification. Here, you can define a default recipient list and fine-tune the contents of the email message, and also define a more precise notification strategy with different messages and recipient lists for different events. Note that once you have installed and configured this plugin for your build job, you can deactivate the normal E-mail Notification configuration.

Configuring advanced email notification

Figure 8-2. Configuring advanced email notification

This plugin has two related but distinct functionalities. Firstly, it lets you customize the email notification message. You can choose from a large number of predefined tokens to create your own customized message title and body. You include a token in your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required