Skip to content
Snippets Groups Projects
Unverified Commit e3315a75 authored by Maxim Cournoyer's avatar Maxim Cournoyer Committed by Maxim Cournoyer
Browse files

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
parent 2827b031
Branches
No related tags found
No related merge requests found
...@@ -73,12 +73,15 @@ pipeline { ...@@ -73,12 +73,15 @@ pipeline {
stages { stages {
stage('Check configuration') { stage('Check configuration') {
when { not { expression { fileExists TARBALLS } } }
steps { steps {
script {
if (!fileExists(TARBALLS)) {
error "The ${TARBALLS} directory does not exist. \ error "The ${TARBALLS} directory does not exist. \
See https://wiki.savoirfairelinux.com/wiki/Jenkins.jami.net#Configuration" See https://wiki.savoirfairelinux.com/wiki/Jenkins.jami.net#Configuration"
} }
} }
}
}
stage('Fetch submodules') { stage('Fetch submodules') {
steps { steps {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment