user1670340
user1670340

Reputation: 159

Email-Ext plugin templates not updated

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.

Upvotes: 0

Views: 1847

Answers (1)

user1670340
user1670340

Reputation: 159

Renaming the existing templates to a custom filename fixes the problem.

Upvotes: 2

Related Questions