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

Parallel sequential stages in Blue Ocean showing wrong status

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • blueocean-plugin
    • Jenkins version: 2.121.3
      Blue Ocean version: 1.8.2
      OS: RHEL7.2
      Browser: Google Chrome

      After updating the Blue ocean to the latest version 1.8.2 released 16 August, Blue Ocean is having issues displaying the status of parallel stages properly.

      I have 2 stages in parallel which contains several sequential stage each.
      While they are both processing, one of the parallel stages is showing as green (DONE) and the other shown as Processing but not displaying the triggered builds.

      You can find my pipeline code below.

       pipeline {
        agent any
        stages { stage('Pushing 2 Tests') {
          //failFast true
          parallel {     
           stage('TE1') {
            stages {
             stage('PUSH TE1') {
              steps {
               script {    
                //Trigger a job
                sleep time: 5, unit: 'MINUTES'        
                echo "Test1"        
               }
              }
             }
             stage('Archive Logs') {
              steps {
               script {
                echo "Archive Test1 Logs"       
               }
              }
             }
             stage('Insert Metrics') {
              steps {
               script {
                echo "Insert Test1 Metrics in DB"
               }
              }
             }
             stage('Compare Metrics') {
              steps {
               script {
                echo "Compare Metrics Test1 vs REF"
               }
              }
             }
            }
           }     
           stage('TE2') {
            stages {
             stage('PUSH TE2') {
              steps {
               script {
                //Trigger a job
                sleep time: 5, unit: 'MINUTES'
                echo "Test2"
               }
              }
             }
             stage('Archive Logs') {
              steps {
               script {
                echo "Archive Test2 Logs"
               }
              }
             }
             stage('Insert Metrics') {
              steps {
               script {
                echo "Insert Test2 Metrics in DB"
               }
              }
             }
             stage('Compare Metrics') {
              steps {
               script {
                echo "Compare Metrics Test2 vs REF"
               }
              }
             }
            }
           }    
          }
         }  
      }
      }
      

          [JENKINS-53129] Parallel sequential stages in Blue Ocean showing wrong status

          Elie Kassis created issue -
          Elie Kassis made changes -
          Description Original: After updating the Blue ocean to the latest version released last week, Blue Ocean is having issues displaying the status of parallel stages properly.

          I have 2 stages in parallel which contains several sequential stage each.
          While they are {color:#FF0000}both processing{color}, one of the parallel stages is showing as green (DONE) and the other shown as Processing but not displaying the triggered builds.

          You can find my pipeline code below.


          {code:java}
           pipeline {
            agent any
            stages { stage('Pushing 2 Tests') {
              //failFast true
              parallel {
               stage('TE1') {
                stages {
                 stage('PUSH TE1') {
                  steps {
                   script {
                    //Trigger a job
                    sleep time: 5, unit: 'MINUTES'
                    echo "Test1"
                   }
                  }
                 }
                 stage('Archive Logs') {
                  steps {
                   script {
                    echo "Archive Test1 Logs"
                   }
                  }
                 }
                 stage('Insert Metrics') {
                  steps {
                   script {
                    echo "Insert Test1 Metrics in DB"
                   }
                  }
                 }
                 stage('Compare Metrics') {
                  steps {
                   script {
                    echo "Compare Metrics Test1 vs REF"
                   }
                  }
                 }
                }
               }
               stage('TE2') {
                stages {
                 stage('PUSH TE2') {
                  steps {
                   script {
                    //Trigger a job
                    sleep time: 5, unit: 'MINUTES'
                    echo "Test2"
                   }
                  }
                 }
                 stage('Archive Logs') {
                  steps {
                   script {
                    echo "Archive Test2 Logs"
                   }
                  }
                 }
                 stage('Insert Metrics') {
                  steps {
                   script {
                    echo "Insert Test2 Metrics in DB"
                   }
                  }
                 }
                 stage('Compare Metrics') {
                  steps {
                   script {
                    echo "Compare Metrics Test2 vs REF"
                   }
                  }
                 }
                }
               }
              }
             }
          }
          }
          {code}
          New: After updating the Blue ocean to the latest version released 16 August, Blue Ocean is having issues displaying the status of parallel stages properly.

          I have 2 stages in parallel which contains several sequential stage each.
           While they are {color:#ff0000}both processing{color}, one of the parallel stages is showing as green (DONE) and the other shown as Processing but not displaying the triggered builds.

          You can find my pipeline code below.
          {code:java}
           pipeline {
            agent any
            stages { stage('Pushing 2 Tests') {
              //failFast true
              parallel {
               stage('TE1') {
                stages {
                 stage('PUSH TE1') {
                  steps {
                   script {
                    //Trigger a job
                    sleep time: 5, unit: 'MINUTES'
                    echo "Test1"
                   }
                  }
                 }
                 stage('Archive Logs') {
                  steps {
                   script {
                    echo "Archive Test1 Logs"
                   }
                  }
                 }
                 stage('Insert Metrics') {
                  steps {
                   script {
                    echo "Insert Test1 Metrics in DB"
                   }
                  }
                 }
                 stage('Compare Metrics') {
                  steps {
                   script {
                    echo "Compare Metrics Test1 vs REF"
                   }
                  }
                 }
                }
               }
               stage('TE2') {
                stages {
                 stage('PUSH TE2') {
                  steps {
                   script {
                    //Trigger a job
                    sleep time: 5, unit: 'MINUTES'
                    echo "Test2"
                   }
                  }
                 }
                 stage('Archive Logs') {
                  steps {
                   script {
                    echo "Archive Test2 Logs"
                   }
                  }
                 }
                 stage('Insert Metrics') {
                  steps {
                   script {
                    echo "Insert Test2 Metrics in DB"
                   }
                  }
                 }
                 stage('Compare Metrics') {
                  steps {
                   script {
                    echo "Compare Metrics Test2 vs REF"
                   }
                  }
                 }
                }
               }
              }
             }
          }
          }
          {code}
          Elie Kassis made changes -
          Description Original: After updating the Blue ocean to the latest version released 16 August, Blue Ocean is having issues displaying the status of parallel stages properly.

          I have 2 stages in parallel which contains several sequential stage each.
           While they are {color:#ff0000}both processing{color}, one of the parallel stages is showing as green (DONE) and the other shown as Processing but not displaying the triggered builds.

          You can find my pipeline code below.
          {code:java}
           pipeline {
            agent any
            stages { stage('Pushing 2 Tests') {
              //failFast true
              parallel {
               stage('TE1') {
                stages {
                 stage('PUSH TE1') {
                  steps {
                   script {
                    //Trigger a job
                    sleep time: 5, unit: 'MINUTES'
                    echo "Test1"
                   }
                  }
                 }
                 stage('Archive Logs') {
                  steps {
                   script {
                    echo "Archive Test1 Logs"
                   }
                  }
                 }
                 stage('Insert Metrics') {
                  steps {
                   script {
                    echo "Insert Test1 Metrics in DB"
                   }
                  }
                 }
                 stage('Compare Metrics') {
                  steps {
                   script {
                    echo "Compare Metrics Test1 vs REF"
                   }
                  }
                 }
                }
               }
               stage('TE2') {
                stages {
                 stage('PUSH TE2') {
                  steps {
                   script {
                    //Trigger a job
                    sleep time: 5, unit: 'MINUTES'
                    echo "Test2"
                   }
                  }
                 }
                 stage('Archive Logs') {
                  steps {
                   script {
                    echo "Archive Test2 Logs"
                   }
                  }
                 }
                 stage('Insert Metrics') {
                  steps {
                   script {
                    echo "Insert Test2 Metrics in DB"
                   }
                  }
                 }
                 stage('Compare Metrics') {
                  steps {
                   script {
                    echo "Compare Metrics Test2 vs REF"
                   }
                  }
                 }
                }
               }
              }
             }
          }
          }
          {code}
          New: After updating the Blue ocean to the latest version released 16 August, Blue Ocean is having issues displaying the status of parallel stages properly.

          I have 2 stages in parallel which contains several sequential stage each.
           While they are {color:#ff0000}both processing{color}, one of the parallel stages is showing as *green* ({color:#00875a}*DONE*{color}) and the other shown as Processing but not displaying the triggered builds.

          You can find my pipeline code below.
          {code:java}
           pipeline {
            agent any
            stages { stage('Pushing 2 Tests') {
              //failFast true
              parallel {
               stage('TE1') {
                stages {
                 stage('PUSH TE1') {
                  steps {
                   script {
                    //Trigger a job
                    sleep time: 5, unit: 'MINUTES'
                    echo "Test1"
                   }
                  }
                 }
                 stage('Archive Logs') {
                  steps {
                   script {
                    echo "Archive Test1 Logs"
                   }
                  }
                 }
                 stage('Insert Metrics') {
                  steps {
                   script {
                    echo "Insert Test1 Metrics in DB"
                   }
                  }
                 }
                 stage('Compare Metrics') {
                  steps {
                   script {
                    echo "Compare Metrics Test1 vs REF"
                   }
                  }
                 }
                }
               }
               stage('TE2') {
                stages {
                 stage('PUSH TE2') {
                  steps {
                   script {
                    //Trigger a job
                    sleep time: 5, unit: 'MINUTES'
                    echo "Test2"
                   }
                  }
                 }
                 stage('Archive Logs') {
                  steps {
                   script {
                    echo "Archive Test2 Logs"
                   }
                  }
                 }
                 stage('Insert Metrics') {
                  steps {
                   script {
                    echo "Insert Test2 Metrics in DB"
                   }
                  }
                 }
                 stage('Compare Metrics') {
                  steps {
                   script {
                    echo "Compare Metrics Test2 vs REF"
                   }
                  }
                 }
                }
               }
              }
             }
          }
          }
          {code}
          Elie Kassis made changes -
          Description Original: After updating the Blue ocean to the latest version released 16 August, Blue Ocean is having issues displaying the status of parallel stages properly.

          I have 2 stages in parallel which contains several sequential stage each.
           While they are {color:#ff0000}both processing{color}, one of the parallel stages is showing as *green* ({color:#00875a}*DONE*{color}) and the other shown as Processing but not displaying the triggered builds.

          You can find my pipeline code below.
          {code:java}
           pipeline {
            agent any
            stages { stage('Pushing 2 Tests') {
              //failFast true
              parallel {
               stage('TE1') {
                stages {
                 stage('PUSH TE1') {
                  steps {
                   script {
                    //Trigger a job
                    sleep time: 5, unit: 'MINUTES'
                    echo "Test1"
                   }
                  }
                 }
                 stage('Archive Logs') {
                  steps {
                   script {
                    echo "Archive Test1 Logs"
                   }
                  }
                 }
                 stage('Insert Metrics') {
                  steps {
                   script {
                    echo "Insert Test1 Metrics in DB"
                   }
                  }
                 }
                 stage('Compare Metrics') {
                  steps {
                   script {
                    echo "Compare Metrics Test1 vs REF"
                   }
                  }
                 }
                }
               }
               stage('TE2') {
                stages {
                 stage('PUSH TE2') {
                  steps {
                   script {
                    //Trigger a job
                    sleep time: 5, unit: 'MINUTES'
                    echo "Test2"
                   }
                  }
                 }
                 stage('Archive Logs') {
                  steps {
                   script {
                    echo "Archive Test2 Logs"
                   }
                  }
                 }
                 stage('Insert Metrics') {
                  steps {
                   script {
                    echo "Insert Test2 Metrics in DB"
                   }
                  }
                 }
                 stage('Compare Metrics') {
                  steps {
                   script {
                    echo "Compare Metrics Test2 vs REF"
                   }
                  }
                 }
                }
               }
              }
             }
          }
          }
          {code}
          New: After updating the Blue ocean to the latest version 1.8.2 released 16 August, Blue Ocean is having issues displaying the status of parallel stages properly.

          I have 2 stages in parallel which contains several sequential stage each.
           While they are {color:#ff0000}both processing{color}, one of the parallel stages is showing as *green* ({color:#00875a}*DONE*{color}) and the other shown as Processing but not displaying the triggered builds.

          You can find my pipeline code below.
          {code:java}
           pipeline {
            agent any
            stages { stage('Pushing 2 Tests') {
              //failFast true
              parallel {
               stage('TE1') {
                stages {
                 stage('PUSH TE1') {
                  steps {
                   script {
                    //Trigger a job
                    sleep time: 5, unit: 'MINUTES'
                    echo "Test1"
                   }
                  }
                 }
                 stage('Archive Logs') {
                  steps {
                   script {
                    echo "Archive Test1 Logs"
                   }
                  }
                 }
                 stage('Insert Metrics') {
                  steps {
                   script {
                    echo "Insert Test1 Metrics in DB"
                   }
                  }
                 }
                 stage('Compare Metrics') {
                  steps {
                   script {
                    echo "Compare Metrics Test1 vs REF"
                   }
                  }
                 }
                }
               }
               stage('TE2') {
                stages {
                 stage('PUSH TE2') {
                  steps {
                   script {
                    //Trigger a job
                    sleep time: 5, unit: 'MINUTES'
                    echo "Test2"
                   }
                  }
                 }
                 stage('Archive Logs') {
                  steps {
                   script {
                    echo "Archive Test2 Logs"
                   }
                  }
                 }
                 stage('Insert Metrics') {
                  steps {
                   script {
                    echo "Insert Test2 Metrics in DB"
                   }
                  }
                 }
                 stage('Compare Metrics') {
                  steps {
                   script {
                    echo "Compare Metrics Test2 vs REF"
                   }
                  }
                 }
                }
               }
              }
             }
          }
          }
          {code}
          Elie Kassis made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]

          Vivek Pandey added a comment -

          > the other shown as Processing but not displaying the triggered builds.

          You mean when you click them the steps are not shown?

          nicu PTAL

          Vivek Pandey added a comment - > the other shown as Processing but not displaying the triggered builds. You mean when you click them the steps are not shown? nicu PTAL
          Vivek Pandey made changes -
          Assignee New: Nicolae Pascu [ nicu ]

          Elie Kassis added a comment -

          vivek Yes indeed, when you click on the stage shown as Processing, the steps are not shown.
          As for the other processing stage shown wrongly as Passed, its steps are shown and can be selected. 

          Elie Kassis added a comment - vivek Yes indeed, when you click on the stage shown as Processing , the steps are not shown. As for the other processing stage shown wrongly as Passed , its steps are shown and can be selected. 

          Vivek Pandey added a comment -

          Sometimes when stage is in progress, steps might not appear instantly because it might not yet be running so api serving them for the selected stage still be returning no steps.

          Regarding wrong status, olamy nicu it might be api not returning correct status? I think there is existing issue with status of parallel stages, there might be ticket some where or may be its new one.

          Vivek Pandey added a comment - Sometimes when stage is in progress, steps might not appear instantly because it might not yet be running so api serving them for the selected stage still be returning no steps. Regarding wrong status, olamy nicu it might be api not returning correct status? I think there is existing issue with status of parallel stages, there might be ticket some where or may be its new one.
          Elie Kassis made changes -
          Attachment New: image-2018-08-20-19-51-36-113.png [ 43796 ]

            olamy Olivier Lamy
            ekassis Elie Kassis
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: