diff --git a/Jenkinsfile b/Jenkinsfile index 7cfd3f7f3..3bb16d592 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -127,7 +127,7 @@ def processAllure() { deleteDir() unstash 'allure' sh 'mv allure-* allure-data' - copyArtifacts filter: 'allure-history.zip', optional: true, projectName: JOB_NAME + copyArtifacts filter: 'allure-history.zip', optional: true, projectName: JOB_NAME, selector: lastWithArtifacts() if (fileExists('allure-history.zip')) { unzip dir: 'allure-data', quiet: true, zipFile: 'allure-history.zip' sh 'rm -f allure-history.zip' diff --git a/tests/modules/Jenkinsfile b/tests/modules/Jenkinsfile index a8cc0c3c2..dd50feb6c 100644 --- a/tests/modules/Jenkinsfile +++ b/tests/modules/Jenkinsfile @@ -53,7 +53,7 @@ ansiColor('xterm') { } stage('Allure Report') { - copyArtifacts filter: 'allure-history.zip', optional: true, projectName: JOB_NAME + copyArtifacts filter: 'allure-history.zip', optional: true, projectName: JOB_NAME, selector: lastWithArtifacts() if (fileExists('allure-history.zip')) { unzip dir: 'allure-data', quiet: true, zipFile: 'allure-history.zip' sh 'rm -f allure-history.zip'