From d678d87ec81a3f62c067610a252af3fc76c41cb2 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Tue, 5 Nov 2024 15:06:20 +0100 Subject: [PATCH] fix checkup method exit condition --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 87191fc..24e56ab 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -340,6 +340,9 @@ def deployJobs(def serviceList){ catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { checkup(service[0], service[ 1 ], service[2]); } + if (currentBuild.result == "UNSTABLE") { + return; + } catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { deploy(service[0], service[ 1 ], service[2]); }