Barel Elbaz
Barel Elbaz

Reputation: 89

Jenkins render email-ext template to use for other purpose

I have an html email template the represents my pipeline result. I'm sending the render template by:

    emailext body: '${SCRIPT, template="feedback.template"}',
        subject: "Full pipeline details",
        mimeType: 'text/html',
        to: "${config.to}"

I try to send the rendered html report also via slack by:

    slackUploadFile filePath: "<MY-rendered-html>", initialComment:  "Full Report"

I can't figure out how to get the rendered email-template html for other purpose like sending the html via slack or uploading it to somewhere else

Upvotes: 0

Views: 410

Answers (1)

Barel elbaz
Barel elbaz

Reputation: 636

You can use saveOutput: true option

Upvotes: 1

Related Questions