[Jenkins]HTML Report无法显示结果,返回HTTP ERROR 404

来源:互联网 发布:最好看的网络官场小说 编辑:程序博客网 时间:2024/06/10 22:54


测试步骤:

1. Master NodeCentOS,使用Docker安装,JobBuildWorkspace在不同目录下

2. Slave NodeWindow7,测试代码的运行环境

3. 配置Jenkins Job,使用SlaveNode下载及运行最新测试代码,然后HTML Publisher Plugin展示结果

 

实际结果:

点击HTMLReport链接,返回HTTP ERROR 404

HTTP ERROR 404

Problem accessing/job/SQMS%20Test/HTML_Report/index.html. Reason:

   Not Found

 

修复办法:                      

1. 查看Workspace中的实际文件名APITestReport201702210350.html,修改Job中的Index page[s]为*.html

2.MASTER/ SLAVE模式下,必须关闭Keeppast HTML Reports选项,否则无法显示结果。

备注:查看ConsoleOutput,如果选择保存报告,将复制到build文件夹;否则,不保存,将复制到jobs文件夹。

[htmlpublisher]Archiving HTML reports...

[htmlpublisher]Archiving at BUILD level C:\jenkins\workspace\SQMS Test\jmeter\resultLog\htmlto /mnt/btrfs/jenkins/builds/SQMS Test/builds/75/htmlreports/HTML_Report

OR

[htmlpublisher]Archiving HTML reports...

[htmlpublisher]Archiving at PROJECT level C:\jenkins\workspace\SQMS Test\jmeter\resultLog\htmlto /var/lib/jenkins/jobs/SQMS Test/htmlreports/HTML_Report

 

0 0