Jenkins 渲染 email-ext 模板以用于其他目的

发布于 2025-01-17 18:43:39 字数 448 浏览 3 评论 0原文

我有一个HTML电子邮件模板代表我的管道结果。 我正在通过以下方式发送渲染模板:

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

我尝试通过Slack发送渲染的HTML报告:

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

我无法弄清楚如何以其他目的获取渲染的电子邮件-template HTML,例如通过Slack发送HTML或将其上传到其他地方

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里泪两行 2025-01-24 18:43:39

您可以使用 saveOutput: true 选项

You can use saveOutput: true option

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文