【发布时间】:2020-06-25 11:09:11
【问题描述】:
我们在 Jenkins 上运行 Selenium 测试,selenium 为每天的每个构建/测试和文件夹名称生成多个 HTML 报告
我想发布来自 Jenkins 的最新 HTML 报告,并尝试使用 alwaysLinkToLastBuild 参数,但它对我不起作用。
所以我的问题是,我如何将最新的 HTML 报告指定到 reportFiles 中,因为我有多个不同的名称。
ubuntu@play-0:~/workspace/selenium_tests@2/p1/p2/reports$ tree
|-- oneapihub_extent_report_2020_06_25_093644.html
|-- oneapihub_extent_report_2020_06_24_093904.html
|-- oneapihub_extent_report_2020_06_23_094414.html
post {
always {
//publish HTML report
publishHTML target: [
allowMissing: false,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'p1/p2/reports',
reportFiles: 'index.html',
reportName: 'HTML Report'
]
}
【问题讨论】:
标签: jenkins jenkins-pipeline jenkins-plugins