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

User is trapped if a parallel stage is skipped. Blueocean shows "Waiting for run to start" instead of log messages.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None
    • Jenkins 2.89.2
      BlueOcean 1.3.5
    • Blue Ocean 1.6 - beta 2, Blue Ocean - 1.6 - beta 4

      In a pipeline with two parallel stages where one stage is skipped BlueOcean shows "Waiting for run to start", although the other stage produces log outputs. (See Waiting.PNG)

      It seems like the skipped stage is selected by default. However, there is no output.

      If there is an additional stage after the parallel stages and the pipeline reaches this stage, the pipeline is visualized properly. However, if you click on the skipped stage the message "Waiting for a run to start" is shown again. 

      Steps to reproduce:

      Execute the following pipeline:

      pipeline {
          agent any
          options {
              timeout(time: 120, unit: 'MINUTES')
              timestamps()
              skipDefaultCheckout()
          }
          stages {
              stage('Parallel Stage') {
                  parallel {
                      stage("Executed Stage") { 
                          steps { 
                              script {
                                for(i=0; i<1000;i++){
                                  echo "Temp"
                                  sleep 1
                                } 
                              } 
                          } 
                      }
                      stage("Skipped Stage") {
                          when { expression { false } }
                          steps { 
                              echo "I am skipped"    
                          }
                      }
                  }
              }
          }
      }
      
      

          [JENKINS-48879] User is trapped if a parallel stage is skipped. Blueocean shows "Waiting for run to start" instead of log messages.

          Daniel Kurzynski created issue -
          Daniel Kurzynski made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Daniel Kurzynski made changes -
          Attachment New: image-2018-02-16-13-08-25-018.png [ 41501 ]
          Daniel Kurzynski made changes -
          Attachment Original: image-2018-02-16-13-08-25-018.png [ 41501 ]
          Daniel Kurzynski made changes -
          Summary Original: If a parallel stage is skipped blueocean shows "Waiting for tun to start" instead of the other stage New: If a parallel stage is skipped blueocean shows "Waiting for run to start" instead of the other stage
          Daniel Kurzynski made changes -
          Description Original: I a pipeline with to parallel stages where one stage is skipped BlueOcean shows "Waiting for run to start", although the other stage produces log outputs. (See Waiting.PNG)

          I seems like the skipped stage is selected by default. However, there is no output.

          If there is an additional stage after the parallel stages and the pipeline reaches this stage, the pipeline is visualized properly. However, if you click on the skipped stage the message "Waiting for run to start" is shown again. 

          Steps to reproduce:

          Execute the following pipeline:
          {code:java}
          pipeline {
              agent any
              options {
                  timeout(time: 120, unit: 'MINUTES')
                  timestamps()
                  skipDefaultCheckout()
              }
              stages {
                  stage('Parallel Stage') {
                      parallel {
                          stage("Executed Stage") {
                              steps {
                                  script {
                                    for(i=0; i<100000;i++){
                                        echo "Temp"
                                    }
                                  }
                              }
                          }
                          stage("Skipped Stage") {
                              when { expression { false } }
                              steps {
                                  echo "I am skipped"
                              }
                          }
                      }
                  }
              }
          }

          {code}
          New: A pipeline with two parallel stages where one stage is skipped BlueOcean shows "Waiting for run to start", although the other stage produces log outputs. (See Waiting.PNG)

          It seems like the skipped stage is selected by default. However, there is no output.

          If there is an additional stage after the parallel stages and the pipeline reaches this stage, the pipeline is visualized properly. However, if you click on the skipped stage the message "Waiting for run to start" is shown again. 

          Steps to reproduce:

          Execute the following pipeline:
          {code:java}
          pipeline {
              agent any
              options {
                  timeout(time: 120, unit: 'MINUTES')
                  timestamps()
                  skipDefaultCheckout()
              }
              stages {
                  stage('Parallel Stage') {
                      parallel {
                          stage("Executed Stage") {
                              steps {
                                  script {
                                    for(i=0; i<100000;i++){
                                        echo "Temp"
                                    }
                                  }
                              }
                          }
                          stage("Skipped Stage") {
                              when { expression { false } }
                              steps {
                                  echo "I am skipped"
                              }
                          }
                      }
                  }
              }
          }

          {code}
          Ramachandra Kamath Arbettu made changes -
          Description Original: A pipeline with two parallel stages where one stage is skipped BlueOcean shows "Waiting for run to start", although the other stage produces log outputs. (See Waiting.PNG)

          It seems like the skipped stage is selected by default. However, there is no output.

          If there is an additional stage after the parallel stages and the pipeline reaches this stage, the pipeline is visualized properly. However, if you click on the skipped stage the message "Waiting for run to start" is shown again. 

          Steps to reproduce:

          Execute the following pipeline:
          {code:java}
          pipeline {
              agent any
              options {
                  timeout(time: 120, unit: 'MINUTES')
                  timestamps()
                  skipDefaultCheckout()
              }
              stages {
                  stage('Parallel Stage') {
                      parallel {
                          stage("Executed Stage") {
                              steps {
                                  script {
                                    for(i=0; i<100000;i++){
                                        echo "Temp"
                                    }
                                  }
                              }
                          }
                          stage("Skipped Stage") {
                              when { expression { false } }
                              steps {
                                  echo "I am skipped"
                              }
                          }
                      }
                  }
              }
          }

          {code}
          New: In a pipeline with to parallel stages where one stage is skipped BlueOcean shows "Waiting for run to start", although the other stage produces log outputs. (See Waiting.PNG)

          It seems like the skipped stage is selected by default. However, there is no output.

          If there is an additional stage after the parallel stages and the pipeline reaches this stage, the pipeline is visualized properly. However, if you click on the skipped stage the message "Waiting for run to start" is shown again. 

          Steps to reproduce:

          Execute the following pipeline:
          {code:java}
          pipeline {
              agent any
              options {
                  timeout(time: 120, unit: 'MINUTES')
                  timestamps()
                  skipDefaultCheckout()
              }
              stages {
                  stage('Parallel Stage') {
                      parallel {
                          stage("Executed Stage") {
                              steps {
                                  script {
                                    for(i=0; i<100000;i++){
                                        echo "Temp"
                                    }
                                  }
                              }
                          }
                          stage("Skipped Stage") {
                              when { expression { false } }
                              steps {
                                  echo "I am skipped"
                              }
                          }
                      }
                  }
              }
          }

          {code}
          Ramachandra Kamath Arbettu made changes -
          Description Original: In a pipeline with to parallel stages where one stage is skipped BlueOcean shows "Waiting for run to start", although the other stage produces log outputs. (See Waiting.PNG)

          It seems like the skipped stage is selected by default. However, there is no output.

          If there is an additional stage after the parallel stages and the pipeline reaches this stage, the pipeline is visualized properly. However, if you click on the skipped stage the message "Waiting for run to start" is shown again. 

          Steps to reproduce:

          Execute the following pipeline:
          {code:java}
          pipeline {
              agent any
              options {
                  timeout(time: 120, unit: 'MINUTES')
                  timestamps()
                  skipDefaultCheckout()
              }
              stages {
                  stage('Parallel Stage') {
                      parallel {
                          stage("Executed Stage") {
                              steps {
                                  script {
                                    for(i=0; i<100000;i++){
                                        echo "Temp"
                                    }
                                  }
                              }
                          }
                          stage("Skipped Stage") {
                              when { expression { false } }
                              steps {
                                  echo "I am skipped"
                              }
                          }
                      }
                  }
              }
          }

          {code}
          New: In a pipeline with to parallel stages where one stage is skipped BlueOcean shows "Waiting for run to start", although the other stage produces log outputs. (See Waiting.PNG)

          It seems like the skipped stage is selected by default. However, there is no output.

          If there is an additional stage after the parallel stages and the pipeline reaches this stage, the pipeline is visualized properly. However, if you click on the skipped stage the message "Waiting for a run to start" is shown again. 

          Steps to reproduce:

          Execute the following pipeline:
          {code:java}
          pipeline {
              agent any
              options {
                  timeout(time: 120, unit: 'MINUTES')
                  timestamps()
                  skipDefaultCheckout()
              }
              stages {
                  stage('Parallel Stage') {
                      parallel {
                          stage("Executed Stage") {
                              steps {
                                  script {
                                    for(i=0; i<100000;i++){
                                        echo "Temp"
                                    }
                                  }
                              }
                          }
                          stage("Skipped Stage") {
                              when { expression { false } }
                              steps {
                                  echo "I am skipped"
                              }
                          }
                      }
                  }
              }
          }

          {code}
          Junjie Tang made changes -
          Description Original: In a pipeline with to parallel stages where one stage is skipped BlueOcean shows "Waiting for run to start", although the other stage produces log outputs. (See Waiting.PNG)

          It seems like the skipped stage is selected by default. However, there is no output.

          If there is an additional stage after the parallel stages and the pipeline reaches this stage, the pipeline is visualized properly. However, if you click on the skipped stage the message "Waiting for a run to start" is shown again. 

          Steps to reproduce:

          Execute the following pipeline:
          {code:java}
          pipeline {
              agent any
              options {
                  timeout(time: 120, unit: 'MINUTES')
                  timestamps()
                  skipDefaultCheckout()
              }
              stages {
                  stage('Parallel Stage') {
                      parallel {
                          stage("Executed Stage") {
                              steps {
                                  script {
                                    for(i=0; i<100000;i++){
                                        echo "Temp"
                                    }
                                  }
                              }
                          }
                          stage("Skipped Stage") {
                              when { expression { false } }
                              steps {
                                  echo "I am skipped"
                              }
                          }
                      }
                  }
              }
          }

          {code}
          New: In a pipeline with two parallel stages where one stage is skipped BlueOcean shows "Waiting for run to start", although the other stage produces log outputs. (See Waiting.PNG)

          It seems like the skipped stage is selected by default. However, there is no output.

          If there is an additional stage after the parallel stages and the pipeline reaches this stage, the pipeline is visualized properly. However, if you click on the skipped stage the message "Waiting for a run to start" is shown again. 

          Steps to reproduce:

          Execute the following pipeline:
          {code:java}
          pipeline {
              agent any
              options {
                  timeout(time: 120, unit: 'MINUTES')
                  timestamps()
                  skipDefaultCheckout()
              }
              stages {
                  stage('Parallel Stage') {
                      parallel {
                          stage("Executed Stage") {
                              steps {
                                  script {
                                    for(i=0; i<100000;i++){
                                        echo "Temp"
                                    }
                                  }
                              }
                          }
                          stage("Skipped Stage") {
                              when { expression { false } }
                              steps {
                                  echo "I am skipped"
                              }
                          }
                      }
                  }
              }
          }

          {code}
          Daniel Kurzynski made changes -
          Attachment New: image-2018-02-16-13-24-53-801.png [ 41502 ]

            Unassigned Unassigned
            kurzy Daniel Kurzynski
            Votes:
            33 Vote for this issue
            Watchers:
            34 Start watching this issue

              Created:
              Updated: