【发布时间】:2016-08-22 11:47:24
【问题描述】:
我正在使用 Email-ext Jenkins 插件在构建完成后发送电子邮件。我需要发送黄瓜报告,其中包含 index.html 文件和一些 .js 和 .css 文件。 我像这样发送它们:
${FILE,path="target/cucumber/index.html"}
<script>
${FILE,path="target/cucumber/formatter.js"}
</script>
<script>
${FILE,path="target/cucumber/jquery-1.8.2.min.js"}
</script>
<script>
${FILE,path="target/cucumber/report.js"}
</script>
<style>
${FILE,path="target/cucumber/style.css"}
</style>
结果文件可以被浏览器处理,但是outlook不能运行。
cucumber 能否在现成的 .html 文件中生成报告,或者我该如何解决?
【问题讨论】:
-
我无法回答您的具体问题,但是将这些 html 文件存储在 jenkins 上并让 jenkins 通过电子邮件发送给它呢?