From 9ff7a6b3ae7135664fd484209d4f325e60cc6dc7 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 28 Nov 2019 18:39:10 +0100 Subject: Jenkins: archive ISO on failed builds if possible Imagine there is a proper build ISO but the tests are failing. It should be possible to check the ISO afterwards. --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile index e86cd4e9..ae964099 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -147,6 +147,10 @@ pipeline { } } } + failure { + archiveArtifacts artifacts: 'build/live-image-amd64.hybrid.iso', + allowEmptyArchive: true + } cleanup { echo 'One way or another, I have finished' // the 'build' directory got elevated permissions during the build -- cgit v1.2.3