The templates and examples provided by the email-ext plugin on jenkins reference variables such as build, root, it
, etc.... Where are these variables coming from and where is the documentation on them? I understand to some extent that it
is the reference to the plugin instance, but that's about where my understanding ends.
If you need reference to the scripts you can see some examples here: https://github.com/jenkinsci/email-ext-plugin/tree/master/src/main/resources/hudson/plugins/emailext/templates
rootURL
does not exist. I'm using this helper function:def getRootUrl(useAbsoluteUrl=false)
{
` def instance = Jenkins.getInstance()` ` return useAbsoluteUrl ? instance.getRootUrl()` ` : (instance.servletContext.getContextPath()+"/")`}
– Lahey