-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.387.2
Email Ext. 2.96
It would be great if we could send in a shared-library resources that is our Email Ext. template, or if we could send in a body (as a string) to be processes as groovy or jelly.
For example, rather then the following call:
emailext subject: '$DEFAULT_SUBJECT', attachLog: attachLogs, body: 'This is our email body', recipientProviders: [developers(), requestor()]
We could do something like:
// This is a shared-library resource file. def mailContent = libraryResource('resources/email/template.groovy') emailext subject: '$DEFAULT_SUBJECT', attachLog: attachLogs, body: mailContent, bodyType: 'groovy', to: additionalRecipients, recipientProviders: [developers(), requestor()]