-
Bug
-
Resolution: Unresolved
-
Minor
-
Jenkins ver. 2.101, pipeline-stage-view-plugin v 2.9
Conditional stages when false are not hidden anymore. It worked before so the problem was introduce with latest updates.
This is the Jenkinsfile code we use, which worked for previous versions and is ok according to the when pipeline syntax.
pipeline { agent any stages { stage('Checkout dev') { when { expression { env.GIT_BRANCH == 'origin/dev' } } steps { echo "\u001B[32mCheckout dev OK\u001B[m" } } stage('Checkout master') { when { expression { env.GIT_BRANCH == 'origin/master' } } steps { echo "\u001B[32mCheckout master OK\u001B[m" } } ...