Allure命令行2.6.0;Jenkins版本。2.89.3;
我使用以下脚本(作业设置中没有任何其他构建后设置):
stage('Generate reports') {
allure([includeProperties: false,
reportBuildPolicy: 'ALWAYS',
results : [[path: allureResultsPath]]])
archive 'catalina.log'
}这将为我提供报告,以及附加到每次运行的以下归档文件:

它是趋势、历史或其他方面所必需的吗?我想关闭它,因为它不被我使用,只占用磁盘的空间。
是否可以使用管道脚本将其关闭?
发布于 2018-05-21 19:44:43
好吧,我看了这个插件的代码,就我所能看到的,没有办法关闭报告的存档。因为它是在报告生成后立即调用的,没有任何条件(参见306处的saveAllureArtifact和299处的调用):https://github.com/jenkinsci/allure-plugin/blob/master/src/main/java/ru/yandex/qatools/allure/jenkins/AllureReportPublisher.java#L299
发布于 2018-05-21 17:09:21
https://stackoverflow.com/questions/50445123
复制相似问题