From 78904c079320a337a2cc341a6286ea80c9657b42 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Tue, 5 Nov 2024 14:43:42 +0100 Subject: [PATCH] fix checkup method exit condition --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 7021971..87191fc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -206,6 +206,9 @@ pipeline { catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { checkup("${params.TRIGGER_JOB}", "${params.TRIGGER_VERSION}", "${params.TRIGGER_HOST}"); } + if (currentBuild.result == "UNSTABLE") { + return; + } catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { deploy("${params.TRIGGER_JOB}", "${params.TRIGGER_VERSION}", "${params.TRIGGER_HOST}", "${params.TRIGGER_FOO}"); }