Reputation: 99
Good morning!
Is possible or had some plugin to change color in the email sent through jenkins , is possible alter the color when project build is wrong?
thank you
Upvotes: 2
Views: 3411
Reputation: 4075
There are at least two ways to handle this:
Set rules in your mail-client, based on the subject of the email from Jenkins
(should catch the 'fail' or 'success' in the subject)
Use the Email-ext Plugin* to send different email-formats for 'Success' or 'Fail' -
just make sure you set the email-format to HTML
(this will allow you to format the body of the message, in terms of colors,
or have a special indication in the subject for each case).
*) To set it with Email-ext Plugin, install it and then edit your jobs:
Under 'Post-build Actions' choose 'Editable Email Notification' and then choose [Advanced...]
to define different mail-templates for different situations
(can also have different mail-lists for each case).
Upvotes: 2