Jenkins Email-ext Jelly Scripts (high-level review)

My project has just integrated Jenkins as its CI server. We would like to use the Email-ext plugin to provide a custom email that gives our developers a reasonable overview of the various metrics after the build is complete.

An example of a screenshot given on the site of the email-ext plugin is more or less of what we are looking for.

We are currently generating metrics for Findbugs, Cobertura code coverage and TestNG. I find it difficult to find good examples of how these metrics can be included in a jelly script.

Does anyone have a similar script or have a link to some good example / tutorial on linking these metrics to email-ext notifications.

thanks

+4
source share
2 answers

Have you looked at $ JENKINS_HOME / plugins / email-ext / WEB-INF / classes / hudson / plugins / emailext / templates / html.jelly? If this is not enough, let me know what additional information you are trying to find, and I will see if I can help.

+4
source

The 2016 docs for Email-Ext [1] talk about how to look up github for jelly file samples. After one instance of e-mail-ext is added to one instance of jenkins, the template files are located inside the jar, which is much less inconvenient to view than using the repository.

The Jelly HTML template is by default available on the Internet [2], as well as a list of all the built-in templates in the ... resources ... templates [3] folder.

[1] Documents: https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-Globalconfiguration

[x] Normal 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

+1
source

Source: https://habr.com/ru/post/1339302/


All Articles