如何在Jenkins流水线中关闭Allure报告的归档功能?
Hey there, let's clear this up for you based on your setup (Allure 2.6.0, Jenkins 2.89.3) and pipeline script:
First: That archived catalina.log isn't tied to Allure's trends or history
The archive 'catalina.log' line in your pipeline is an explicit Jenkins step you've added—it's not part of the Allure plugin's default behavior. This archived log file has nothing to do with Allure's ability to track test trends, show historical reports, or any other Allure-specific features.
Allure relies on the test result files in your allureResultsPath directory for history and trend data. The Allure Jenkins plugin automatically preserves these results in Jenkins' build history (separate from general build artifacts) to generate those useful over-time stats—so you don't need the catalina.log archive for any of that.
Second: How to disable the archive to save disk space
Since this archive is coming from your own pipeline code, the fix is straightforward: just remove the archive 'catalina.log' line from your Generate reports stage. Your updated stage will look like this:
stage('Generate reports') { allure([includeProperties: false, reportBuildPolicy: 'ALWAYS', results : [[path: allureResultsPath]]]) }
This will still generate your Allure report exactly as before, but skip archiving the catalina.log file entirely.
Quick bonus note (if you see other Allure-related archives)
If you ever notice extra archives tied to Allure (like the results folder or generated report), rest assured the plugin doesn't do this by default. Unless you've added additional archive steps targeting those files, you won't have to worry about them. Your current allure step configuration (with includeProperties: false) is already set to avoid unnecessary extra files.
内容的提问来源于stack exchange,提问作者Bohdan Nesteruk

