[英]Html plublisher - Could not copy html report to other path within workspace
Trying to copy the HTML publisher report to another path in same workspace.尝试将 HTML 发布者报告复制到同一工作区中的另一个路径。
Added below script in jenkinsfile在 jenkinsfile 中添加了以下脚本
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false,includes: '**/*.png', keepAll: true, reportDir: target/cucumber-html-reports', reportFiles: report.html', reportName: 'HTMLReport', reportTitles: ''])
Jenkins Console log詹金斯控制台日志
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /apps/cloudbees-je/cloudbees-data/workspace/TEST/all_test/target/cucumber-html-reports to /apps/jenkins/cloudbees-data/jobs/TEST/jobs/all_test/builds/42/htmlreports/HTMLReport
I am trying to copy the HTML publisher output “/apps/jenkins/cloudbees-data/jobs/TEST/jobs/all_test/builds/42/htmlreports/HTMLReport" To ${env.WORKSPACE}/report by running below script in jenkinsfile我正在尝试通过在 jenkinsfile 中运行以下脚本将 HTML 发布者输出“/apps/jenkins/cloudbees-data/jobs/TEST/jobs/all_test/builds/42/htmlreports/HTMLReport”复制到 ${env.WORKSPACE}/report
sh "cp /apps/jenkins/cloudbees-data/jobs/TEST/jobs/all_test/builds/42/htmlreports/HTMLReport ${env.WORKSPACE}/report/"
ERROR :错误 :
cp: cannot stat ‘/apps/jenkins/cloudbees-data/jobs/DSO_TEST/jobs/dso_automation_ete_test/builds/46/htmlreports/HTMLReport’: No such file or directory
Any Suggestion to copy the HTML publisher report to another path.Not understanding why o could not see an files in the HTMl publisher reported path.将 HTML 发布者报告复制到另一个路径的任何建议。不明白为什么 o 在 HTMl 发布者报告的路径中看不到文件。
You must check if all files are available at the defined location.您必须检查所有文件是否在定义的位置可用。
You can then do a copy command using :然后,您可以使用以下命令执行复制命令:
cp /apps/jenkins/cloudbees-data/jobs/DSO_TEST/jobs/dso_automation_ete_test/builds/46/htmlreports/* ${env.WORKSPACE}/report/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.