Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48881

Stage still shown with NaNy NaNd when condition returns false

      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"
                  }
              }
      ...
      

       

          [JENKINS-48881] Stage still shown with NaNy NaNd when condition returns false

          Philip Sultanescu created issue -
          Vivek Pandey made changes -
          Labels Original: conditional-buildstep jenkins plugin stageview-frontend New: conditional-buildstep jenkins plugin stageview-frontend triaged-2018-11
          Kevin van Hoorn made changes -
          Attachment New: Screen Shot 2019-02-01 at 12.12.08.png [ 45871 ]
          Mark Waite made changes -
          Assignee Original: Sam Van Oort [ svanoort ]

            Unassigned Unassigned
            philip_sultanescu Philip Sultanescu
            Votes:
            20 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated: