From 56fb8bd136bcc858a857b76e3b325c2219326e03 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Tue, 10 May 2022 16:01:16 +0200 Subject: [PATCH] set to UNSTABLE when a job is added to pending list --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index d414d7b..50be665 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -120,6 +120,11 @@ pipeline { echo "${TRIGGER_JOB},${TRIGGER_VERSION},${TRIGGER_HOST}" >> ${DEPLOY_FILE} fi ''' + catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { + sh(""" + exit 126; + """) + } } } stage('Deploy from job ') {