From 0ad13c9e418a744433874f2e5856565e82d1bdaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 15 Aug 2021 10:55:08 +0200 Subject: [PATCH] jenkins: run all stages even if there are errors --- Jenkinsfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ef26f0b..c8207d9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,17 +6,23 @@ pipeline { stages { stage('Unit Tests (buster)') { steps { - sh 'sudo ./test-nspawn buster' + catchError(stageResult: 'FAILURE') { + sh 'sudo ./test-nspawn buster' + } } } stage('Unit Tests (bullseye)') { steps { - sh 'sudo ./test-nspawn bullseye' + catchError(stageResult: 'FAILURE') { + sh 'sudo ./test-nspawn bullseye' + } } } stage('Unit Tests (bookworm)') { steps { - sh 'sudo ./test-nspawn bookworm' + catchError(stageResult: 'FAILURE') { + sh 'sudo ./test-nspawn bookworm' + } } } }