If you want a fancy email notification, rather than the old, plain email template provided by Jenkins by default, you can do it by following the simple steps described below:

  1. Click “Manage Jenkins”

    email_template1

  2. Click “Managed File”

    email_template2

  3. Click “Extended Email Publisher Groovy Template” or “Extended Email Publish Jelly Template” , and give it an ID

    email_template3

  4. Create the template (the following example is an groovy file)

    email_template4

  5. Configure the task by adding an post action of “Editable Email Notification”

    email_template5

  6. Use the template in the post action configuration

    email_template6