I'm working with jenkins pipeline. I'm using this plugin to send email notification with the use templates. I reused an existing templates from github.
I place the templates $Jenkins_Home\email-templates\
.
But my changes are not updated in the email. Still the old content was received. Sample code:
def call(email, subject, content, attachment = null){
def attachBuildLog = currentBuild.result != 'SUCCESS'
emailext attachLog: attachBuildLog,
body: '${SCRIPT, template="groovy-html"}',
mimeType: 'text/html',
subject: "${subject}",
to: "${email}",
replyTo: "${email}",
recipientProviders: [[$class: 'DevelopersRecipientProvider']]
}
Please advise.
Renaming the existing templates to a custom filename fixes the problem.