首页 文章

如何在邮件上发送黄瓜html报告

提问于
浏览
0

我有自动化项目,我正在通过詹金斯 . 在构建成功或失败后,单击链接“黄瓜功能级别概述报告”后,将显示所有html报告 .

在pom中添加了依赖性

<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>email-ext</artifactId>
<version>2.25</version>
</dependency>

在jenkins工作中添加了代码: - 部分:可编辑的电子邮件通知 - >默认内容

$ {文件路径= “https://jenkins.company.com/dareProject/job/Automation_Jobs/job/Dare_Project_job/Cucumber_Steps_Level_Overview_Report/”}

我收到的邮件有错误: -

错误:文件'https://jenkins.company.com/dareProject/job/Automation_Jobs/job/Dare_Project_job/Cucumber_Steps_Level_Overview_Report/'不存在

如何在电子邮件正文中显示报告?

1 回答

  • 0

    我收到的邮件有错误

    path 参数中,您必须使用文件系统中相对于作业工作空间的文件位置,而不是指向它的超链接!

    以及如何在电子邮件正文中显示报告?

    Default Content 字段中设置正确的路径,然后在 Content Type 字段中选择 HTML (text/html) .

相关问题