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.
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 ...