CI: Collect DDS logs on error

This commit is contained in:
Dennis Klein 2021-03-24 11:18:57 +01:00 committed by Dennis Klein
parent 107248be0a
commit b4aeb320e5

4
Jenkinsfile vendored
View File

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