publishHTML 中的 allowMissing 无法按预期工作
allowMissing in publishHTML does not work as expected
我不希望我的 jenkins 作业在找不到 html 报告时失败。
我有这样的代码来发布 HTML 报告
publishHTML([
reportDir:'projects..../build_report',
reportFiles:'index.html',
reportName:'Foo Build Report',
keepAll:true,
alwaysLinkToLastBuild:true,
allowMissing:false,
])
我试过 allowMissing:true
但这也行不通!当找不到 html 文件时,我的工作仍然失败。
allowMissing:true
是正确的参数。确保在正确的作业中设置它
我不希望我的 jenkins 作业在找不到 html 报告时失败。
我有这样的代码来发布 HTML 报告
publishHTML([
reportDir:'projects..../build_report',
reportFiles:'index.html',
reportName:'Foo Build Report',
keepAll:true,
alwaysLinkToLastBuild:true,
allowMissing:false,
])
我试过 allowMissing:true
但这也行不通!当找不到 html 文件时,我的工作仍然失败。
allowMissing:true
是正确的参数。确保在正确的作业中设置它