我有自动化项目,我正在通过詹金斯 . 在构建成功或失败后,单击链接“黄瓜功能级别概述报告”后,将显示所有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/”}
我收到的邮件有错误: -
如何在电子邮件正文中显示报告?
1 回答
在
path
参数中,您必须使用文件系统中相对于作业工作空间的文件位置,而不是指向它的超链接!在
Default Content
字段中设置正确的路径,然后在Content Type
字段中选择HTML (text/html)
.