From 158fb72b1bb5e421d32f77bf8143e951d12180c5 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 20 Jan 2022 20:03:35 +0100 Subject: Jenkins: always archive artifacts --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ce9ec8cb..0d91ffdb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -143,6 +143,10 @@ pipeline { } } post { + always { + archiveArtifacts artifacts: '**/build/vyos-*.iso, **/build/vyos-*.qcow2', + allowEmptyArchive: true + } success { script { // only deploy ISO if build from official repository @@ -191,10 +195,6 @@ pipeline { } } } - failure { - archiveArtifacts artifacts: '**/build/vyos-*.iso, **/build/vyos-*.qcow2', - allowEmptyArchive: true - } cleanup { echo 'One way or another, I have finished' // the 'build' directory got elevated permissions during the build -- cgit v1.2.3