diff --git a/Jenkinsfile b/Jenkinsfile index bd2df1d5a9af..4a013bc2136a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,6 +47,9 @@ pipeline { junit testResults: '**/target/*-reports*/*.xml', testDataPublishers: [[$class: 'ClaimTestDataPublisher']], healthScaleFactor: 100 + + sh 'zip logs-${BRANCH_NAME}-${BUILD_NUMBER}.zip $(find . -name target -prune -o -name \'*.log\' -print)' + archiveArtifacts allowEmptyArchive: true, artifacts: 'logs*.zip' } }