CI: Fix error handler

This commit is contained in:
Dennis Klein 2021-05-28 09:58:12 +02:00 committed by Dennis Klein
parent 2b438452a0
commit 904771e9fa

6
Jenkinsfile vendored
View File

@ -59,8 +59,10 @@ def jobMatrix(String type, List specs) {
githubNotify(context: "${label}", description: 'Success', status: 'SUCCESS')
} catch (e) {
def tarball = "${type}_${job}_dds_logs.tar.gz"
sh "tar czvf ${tarball} -C \${WORKSPACE}/build/test .DDS/"
archiveArtifacts tarball
if (fileExists("build/test/.DDS")) {
sh "tar czvf ${tarball} -C \${WORKSPACE}/build/test .DDS/"
archiveArtifacts tarball
}
deleteDir()
githubNotify(context: "${label}", description: 'Error', status: 'ERROR')