简体   繁体   English

HTML Jenkins 报告

[英]HTML Report in Jenkins

I would like to create html report in Jenkins in the main page of the project but but the path I'm setting that's supposed to point to where the report is, Jenkins tells me it doesn't exist.我想在项目主页的 Jenkins 中创建 html 报告,但是我设置的路径应该指向报告所在的位置,Jenkins 告诉我它不存在。

Could someone please tell me exactly how to write it down?有人能告诉我具体怎么写吗?

The path that i write is:我写的路径是:

/var/lib/jenkins/workspace/job/app-offerhop/job/job/applications/job/e2e_test/ws/e2e/report/output/report/

And the message that appears when it finishs the execution is:完成执行时出现的消息是:

[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level /var/lib/jenkins/workspace/job/app-offerhop-job/job/applications/job/e2e_test/ws/e2e/report/output/report to /var/lib/jenkins/jobs/app-offerhop-job/jobs/applications/jobs/e2e_test/htmlreports/HTML_Report
ERROR: Specified HTML directory '/var/lib/jenkins/workspace/job/app-offerhop-job/job/applications/job/e2e_test/ws/e2e/report/output/report' does not exist.
Build step 'Publish HTML reports' changed build result to FAILURE

Finished: FAILURE Thank you in advance.完成:失败提前谢谢你。

htmlpublisher use relative path to the job workspace. htmlpublisher使用作业工作区的相对路径。 You can check the path of the html by using Jenkins workspace explorer.您可以使用 Jenkins 工作区资源管理器检查 html 的路径。

As example, in one of my project, I can access to my html file with jenkins workspace explorer at this address: http://jenkins.org.com:8080/job/Project1/job/Branch_BL1/29/execution/node/3/ws/Work/Exe/MyReport.html As example, in one of my project, I can access to my html file with jenkins workspace explorer at this address: http://jenkins.org.com:8080/job/Project1/job/Branch_BL1/29/execution/node/ 3/ws/工作/Exe/MyReport.html

I remove everything before /ws/ , the path to the html is Work/Exe/MyReport.html我删除/ws/之前的所有内容,html 的路径是Work/Exe/MyReport.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM