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.

XMLWordPrintable

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

        1. image-2018-02-16-13-24-53-801.png
          23 kB
          Daniel Kurzynski
        2. Screen Shot 2021-01-17 at 8.09.06 pm.png
          47 kB
          DP
        3. Waiting.PNG
          10 kB
          Daniel Kurzynski
        4. wariting-for-run.png
          28 kB
          William Laszlo

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

              Created:
              Updated: