summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-11-28 18:39:10 +0100
committerChristian Poessinger <christian@poessinger.com>2019-11-28 18:39:12 +0100
commit9ff7a6b3ae7135664fd484209d4f325e60cc6dc7 (patch)
tree5edb38a0a57f8957b6b1b2777f9db94ea9c4adaf
parentea136142d467cf76b2e3d9d33a3ca1c93ae9d169 (diff)
downloadvyos-build-9ff7a6b3ae7135664fd484209d4f325e60cc6dc7.tar.gz
vyos-build-9ff7a6b3ae7135664fd484209d4f325e60cc6dc7.zip
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.
-rw-r--r--Jenkinsfile4
1 files changed, 4 insertions, 0 deletions
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