From 0ac2f560a4e08e2dfe386d81d6f51bd86698907b Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Fri, 27 Nov 2020 00:00:11 +0100 Subject: [PATCH] Jenkins: Archive allure history --- Jenkinsfile | 1 + tests/modules/Jenkinsfile | 1 + 2 files changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index b65240eaa..2aa2ccf16 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -126,6 +126,7 @@ def processAllure() { deleteDir() unstash 'allure' sh 'docker run --rm -v $PWD:/work -u $(id -u) tobix/allure-cli generate allure-*' + zip archive: true, dir: 'allure-report', glob: 'history/**', zipFile: 'allure-history.zip' publishHTML reportDir: 'allure-report', reportFiles: 'index.html', reportName: 'Allure Report' } } diff --git a/tests/modules/Jenkinsfile b/tests/modules/Jenkinsfile index e285bf5cf..b12f3bd29 100644 --- a/tests/modules/Jenkinsfile +++ b/tests/modules/Jenkinsfile @@ -54,6 +54,7 @@ ansiColor('xterm') { stage('Allure Report') { sh 'docker run --rm -v $PWD:/work -u $(id -u) tobix/allure-cli generate allure-data' + zip archive: true, dir: 'allure-report', glob: 'history/**', overwrite: true, zipFile: 'allure-history.zip' publishHTML reportDir: 'allure-report', reportFiles: 'index.html', reportName: 'Allure Report' } }