詹金斯在哪里找到`groovy-html.template`?

时间:2020-08-21 08:14:15

标签: jenkins groovy automation continuous-integration devops-services

我正在使用Jenkins在电子邮件中附加模板。我在email-templates下创建了一个文件夹名称.jenkins,并在其中放置了名为build-report.groovy的模板。

好事是我可以使用${SCRIPT, template="build-report.groovy"}在电子邮件分机中附加此模板,并且可以在电子邮件中看到预期的数据。

但是如果我使用${SCRIPT, template="groovy-html.template"},我还可以看到具有颜色和样式的相同模板数据。

那时我没有任何名称为groovy-html.template的模板文件,而詹金斯是从那里选出来的?

1 个答案:

答案 0 :(得分:1)

它是email-ext Jenkins插件的一部分,位于相应的jar文件中。

您可以在源代码中看到它:

https://github.com/jenkinsci/email-ext-plugin/blob/master/src/main/resources/hudson/plugins/emailext/templates/groovy-html.template