Jenkins电子邮件分机果冻脚本包含文件内容 [英] Jenkins email ext jelly script include file contents

查看:177
本文介绍了Jenkins电子邮件分机果冻脚本包含文件内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在果冻脚本输出中显示另一个文件的内容吗?

Can I display the contents of another file in my jelly script output?

推荐答案

如果文件包含在作业的工作空间中,请声明您的变量,例如:

If the file is included in the workspace of the job, declare your variable such as:

<j:set var="fileContent" value="${build.getWorkspace().child("results.html")}"/>

并这样称呼:

${fileContent}

这篇关于Jenkins电子邮件分机果冻脚本包含文件内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆