From e3315a75e77b8ffadd0bd62e1349de347b9f6f44 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com> Date: Wed, 21 Jul 2021 12:03:20 -0400 Subject: [PATCH] Jenkinsfile: Fix presentation of the 'Check configuration' stage. * Jenkinsfile ('Check configuration'): Rewrite stage as a script. This makes the stage show as passed instead of skip in Blue Ocean, which is more accurate. Change-Id: I5be0cdc0c918521c3580b60261b98b9dff804876 --- Jenkinsfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d4edce12..7e28db69 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -73,10 +73,13 @@ pipeline { stages { stage('Check configuration') { - when { not { expression { fileExists TARBALLS } } } steps { - error "The ${TARBALLS} directory does not exist. \ + script { + if (!fileExists(TARBALLS)) { + error "The ${TARBALLS} directory does not exist. \ See https://wiki.savoirfairelinux.com/wiki/Jenkins.jami.net#Configuration" + } + } } } -- GitLab