blueocean view of dynamic parallel stages flattens the previous parallel bubbles if the iteration is single

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Hi,
      Ā 
      I am encountering a strange issue and hopeĀ I can get some help. Below is a test jenkins pipeline code which can best demonstrate the issue i am seeing.Ā 
      Stage '1p' executes well with both stage 'a' and 'b' executing in parallelĀ ( stage 'one' and 'two' are sequential stage in 'a' and 'b' ). When Stage '2p' starts, the parallel rendering of stage '1p' (yes, previous stage) flattens out as a singleĀ bubble ( parallel view disappears) until '2p' is completed. Once stage '2p' is completed, the stateĀ '1p' goes back to parallel stage view. I am not sure if this is a bug or I am missing something. The use case I have is stage '2p' has an input step waiting for QA approval, which could be waiting for several hours and the rest of the pipeline is being rendered as a straight line view, even though there are a lot of stages with parallel execution.Ā 
      Ā 
      fp = [:]
      sp = [:]

      pipeline {
      agent any
      stages {
      stage('1p') {
      steps {
      script {
      ['a','b'].each

      { item -> fp[item] = gen_fp(item) }

      parallel fp
      }
      }
      }
      stage('2p') {
      steps {
      script {
      ['c'].each

      { item -> sp[item] = gen_fp(item) }

      parallel sp
      }
      }
      }
      }
      }
      def gen_fp(item) {
      return {
      stage(item) {
      stage('one')

      { sleep 3 echo "one" }

      stage('two')

      { sleep 3 echo "two" }

      }
      }
      }

        1. Screen Shot 2022-04-12 at 6.45.27 PM.png
          40 kB
          dinesh Gopalakrishnan
        2. Screen Shot 2022-04-12 at 6.45.54 PM.png
          37 kB
          dinesh Gopalakrishnan
        3. Screen Shot 2022-04-12 at 6.46.02 PM.png
          29 kB
          dinesh Gopalakrishnan

            Assignee:
            Unassigned
            Reporter:
            dinesh Gopalakrishnan
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: