我正在使用Jenkins在电子邮件中附加模板。我在email-templates
下创建了一个文件夹名称.jenkins
,并在其中放置了名为build-report.groovy
的模板。
好事是我可以使用${SCRIPT, template="build-report.groovy"}
在电子邮件分机中附加此模板,并且可以在电子邮件中看到预期的数据。
但是如果我使用${SCRIPT, template="groovy-html.template"}
,我还可以看到具有颜色和样式的相同模板数据。
那时我没有任何名称为groovy-html.template
的模板文件,而詹金斯是从那里选出来的?
答案 0 :(得分:1)
它是email-ext Jenkins插件的一部分,位于相应的jar文件中。
您可以在源代码中看到它: