I am can use the default html template from email-ext plugin, but I cannot locate the template file under the plugin directory. Where can I edit this default html.jelly template? In earlier versions of Jenkins these used to be located under the plugins/email-ext directory in Jenkins home.
Asked
Active
Viewed 1.2k times
1 Answers
3
Put your template in \Jenkins\email-templates\YOUR_TEMPLATE.jelly. If there is no email-templates folder, just create it.

Dmytriy Bezkrovniy
- 46
- 3
-
Lets say I've created a template named `mytemplate.jelly` now how would I use this template for my email-body, do I need to write something in `Default Pre-send Script` to use my customized template. I mean I am not clear how to use the template.... could you please guide me. – Paras Apr 08 '15 at 14:29
-
you need to give this jelly file to email-ext plugin. Add "Editable email-notification" in postbuild actions. Then add following to 'Default content': ${JELLY_SCRIPT,template="mytemplate"} – harish Apr 09 '15 at 07:27
-
2I found your answer suffering this error: "Jelly file [html] was not found in $JENKINS_HOME/email-templates" after a Jenkins upgrade. I copied https://raw.githubusercontent.com/jenkinsci/email-ext-plugin/master/src/main/resources/hudson/plugins/emailext/templates/html.jelly into a new folder /var/lib/jenkins/email-templates and it works again. Thanks for your hint. Could you add a link to the documentation of this folder? – alfonx Feb 16 '16 at 22:10