诱惑命令行 2.6.0;
Jenkins 版。 2.89.3;
我正在使用以下脚本(作业设置中没有任何其他构建后设置):
stage('Generate reports') {
allure([includeProperties: false,
reportBuildPolicy: 'ALWAYS',
results : [[path: allureResultsPath]]])
archive 'catalina.log'
}
这给了我报告,还有以下文件,附加到每次运行:
趋势,历史或其他东西是否需要它?
我想关闭它,因为它不是我使用的,只占用磁盘空间。
是否可以使用管道脚本将其关闭?
最佳答案
好的,我查看了插件的代码,据我所知,无法关闭存档报告。因为它在报告生成后立即调用,没有任何条件(参见 saveAllureArtifact 在 306 和它在 299 的调用):
https://github.com/jenkinsci/allure-plugin/blob/master/src/main/java/ru/yandex/qatools/allure/jenkins/AllureReportPublisher.java#L299
关于jenkins - 关闭 Allure 报告的存档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50445123/