set to UNSTABLE when a job is added to pending list

This commit is contained in:
Roberto Cirillo 2022-05-10 16:01:16 +02:00
parent ec4bbb7856
commit 56fb8bd136
1 changed files with 5 additions and 0 deletions

5
Jenkinsfile vendored
View File

@ -120,6 +120,11 @@ pipeline {
echo "${TRIGGER_JOB},${TRIGGER_VERSION},${TRIGGER_HOST}" >> ${DEPLOY_FILE} echo "${TRIGGER_JOB},${TRIGGER_VERSION},${TRIGGER_HOST}" >> ${DEPLOY_FILE}
fi fi
''' '''
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') {
sh("""
exit 126;
""")
}
} }
} }
stage('Deploy from job ') { stage('Deploy from job ') {