CI: Collect DDS logs on error

This commit is contained in:
Dennis Klein 2021-03-24 11:18:57 +01:00
parent f5b44993d9
commit 7ac95b5c2a

4
Jenkinsfile vendored
View File

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