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

          This issue needs to be fixed. NaNy NaNd does not look good on build dashboard

          Akashdeep Thakur added a comment - This issue needs to be fixed. NaNy NaNd does not look good on build dashboard

          This is also happening when you have jobs in parallel:

           

          pipeline { 
            agent any 
            stages { 
              stage('Prepare ur angus') { 
                parallel { 
                  stage('Prepare ur angus') { 
                    steps { 
                      echo 'Quite simple' 
                    } 
                  } 
                  stage('Bake the angus') { 
                    steps { 
                      sleep 12 
                    } 
                  } 
                } 
              }
            }
          }
          

          Kevin van Hoorn added a comment - This is also happening when you have jobs in parallel:   pipeline { agent any stages { stage( 'Prepare ur angus' ) { parallel { stage( 'Prepare ur angus' ) { steps { echo 'Quite simple' } } stage( 'Bake the angus' ) { steps { sleep 12 } } } } } }

          Robin Jansohn added a comment -

          svanoort are there any plans to get this fixed?

          Robin Jansohn added a comment - svanoort are there any plans to get this fixed?

          Basil Crow added a comment -

          Basil Crow added a comment - Likely fixed by jenkinsci/pipeline-stage-view-plugin#68 .

          Oleg Nenashev added a comment -

          Any chance it was fixed in pipeline-stage-view-2.12 ? Does not look so taking the recent mentions in Twitter

          Oleg Nenashev added a comment - Any chance it was fixed in  pipeline-stage-view-2.12  ? Does not look so taking the recent mentions in Twitter

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

              Created:
              Updated: