'Turn off archiving of Allure report

Allure commandline 2.6.0; Jenkins ver. 2.89.3;

I am using the following script (no any other post-build settings in job settings):

stage('Generate reports') {
    allure([includeProperties: false,
        reportBuildPolicy: 'ALWAYS',
        results          : [[path: allureResultsPath]]])
    archive 'catalina.log'
}

This gives me the report, but also the following archive, attached to each run: enter image description here

Is it required for Trend, history or something? I'd like to turn it off as it is not used by me and only spends the disk's space.

Is it possible to turn it off using the pipeline script?



Solution 1:[1]

Okay, I looked at the plugin's code and as far as I can see, there is no way to turn off archiving the report. Because it is called right after the report is generated, without any conditions (see saveAllureArtifact at 306 and it's call at 299): https://github.com/jenkinsci/allure-plugin/blob/master/src/main/java/ru/yandex/qatools/allure/jenkins/AllureReportPublisher.java#L299

Solution 2:[2]

In allure plugin you can add attribute disabled

disabled (optional) Type: boolean

So add disabled: true to your configuration:

allure(disabled: true, ...

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 BohdanN
Solution 2 user7294900