diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-11-28 18:39:10 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-11-28 18:39:12 +0100 |
commit | 9ff7a6b3ae7135664fd484209d4f325e60cc6dc7 (patch) | |
tree | 5edb38a0a57f8957b6b1b2777f9db94ea9c4adaf /Jenkinsfile | |
parent | ea136142d467cf76b2e3d9d33a3ca1c93ae9d169 (diff) | |
download | vyos-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.
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 4 |
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 |