Jenkins Email-ext Jelly 脚本(高级概述)
我的项目刚刚集成了 Jenkins 作为其 CI 服务器。我们很乐意使用 Email-ext 插件来提供定制电子邮件,以便我们的开发人员在构建完成后对各种指标有一个合理的概述。
示例屏幕截图 ://wiki.hudson-ci.org/display/HUDSON/Email-ext+plugin" rel="nofollow">Email-ext 插件网站 或多或少是我们正在寻找的。
我们当前生成 Findbugs、Cobertura 代码覆盖率和 TestNG 的指标。我很难找到如何将这些指标包含在 Jelly 脚本中的好例子。
是否有人有类似的脚本或有一些将这些指标链接到电子邮件分机通知的好示例/教程的链接。
谢谢
My project has just integrated Jenkins as its CI server. We would love to use the Email-ext plugin to provide a customized email that gives our developers a reasonable overview of various metrics once a build is complete.
The example screenshot given on the Email-ext plugin site its more or less what we are looking for.
We generate currently generate metrics for Findbugs, Cobertura code coverage and TestNG. I'm having difficulty finding good examples of how these metrics might be included in a Jelly script.
Does anyone have a similar script or have a link to some good example/tutorial of linking these metrics into Email-ext notifications.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您看过 $JENKINS_HOME/plugins/email-ext/WEB-INF/classes/hudson/plugins/emailext/templates/html.jelly 吗?如果这还不够,请告诉我您想要查找哪些其他信息,我会看看是否可以提供帮助。
Have you looked at $JENKINS_HOME/plugins/email-ext/WEB-INF/classes/hudson/plugins/emailext/templates/html.jelly ? If that isn't sufficient, let me know what additional information you're trying to find and I'll see if I can help.
Email-Ext [1] 的 2016 文档说要在 github 上查找示例 jelly 文件。一旦将 email-ext 安装到自己的 jenkins 实例中,模板文件就位于 jar 内,这比使用存储库更方便查看。
默认的 HTML Jelly 模板可在网络上找到 [2],所有内置模板的列表也位于 ...resources...templates 文件夹 [3] 中。
[1] 文档:https://wiki。 jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-Globalconfiguration
[x] 常规默认 HTML 模板:https://github.com/jenkinsci/email-ext-plugin/blob /master/src/main/resources/hudson/plugins/emailext/templates/html.jelly
[3] 所有模板:https://github.com/jenkinsci/email-ext-plugin/tree/master/src/main/resources /hudson/plugins/emailext/templates
The 2016 docs for Email-Ext [1] say to look on github for the sample jelly files. Once one installs email-ext into one's jenkins instance, the template files are located inside the jar, which is much less inconvenient for viewing than using the repository.
The default HTML Jelly template is available on the web [2] as is the list of all the built-in templates, in the ...resources...templates folder [3].
[1] Docs: https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-Globalconfiguration
[x] The regular default HTML template: https://github.com/jenkinsci/email-ext-plugin/blob/master/src/main/resources/hudson/plugins/emailext/templates/html.jelly
[3] All templates: https://github.com/jenkinsci/email-ext-plugin/tree/master/src/main/resources/hudson/plugins/emailext/templates