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

Not receiving enough events (SSE) for block scoped stages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Blocker Blocker
    • blueocean-plugin
    • None

      When using the new block scoped stages, SSE events do not arrive correctly.

      Using the pipeline below, the following events are received:

      https://issues.jenkins-ci.org/secure/attachment/34010/34010_Screenshot+from+2016-09-19+16-59-36.png

      however, when non block scoped stages are used, the following events arrive:

      https://issues.jenkins-ci.org/secure/attachment/34012/34012_Screenshot+from+2016-09-19+17-00-51.png

      Note that the new syntax is missing stage_id.

      node {
          stage("hey") {
              sh 'ping -c 5 www.apple.com'
      
          }
      
      
          stage("par") {
              parallel (
                  "b1" : {
                      sh 'ping -c 2 www.apple.com'
                  },
      
                  "b2" : {
                      sh 'sleep 1 && ping -c 1 www.apple.com'
                      sh 'sleep 1 && ping -c 1 www.apple.com'
                      sh 'sleep 1 && ping -c 1 www.apple.com'
                      sh 'sleep 1 && ping -c 1 www.apple.com'
                      sh 'sleep 1 && ping -c 1 www.apple.com'
                      sh 'sleep 1 && ping -c 1 www.apple.com'
                      sh 'sleep 1 && ping -c 1 www.apple.com'
                      sh 'sleep 1 && ping -c 1 www.apple.com'
                      sh 'sleep 1 && ping -c 1 www.apple.com'
                      sh 'sleep 1 && ping -c 1 www.apple.com'
                  } 
      
      
              )
      
          }
      
      
          stage("ho") {
              sh 'ping -c 10 www.apple.com'    
          }
      
      }
      

            Unassigned Unassigned
            michaelneale Michael Neale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: