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

Parallel stages not displayed correctly

    XMLWordPrintable

Details

    Description

      The scenario works fine for the scripted pipeline but the same fails in the declarative pipeline

      scripted pipeline

      {{def j=[:]
      node \{
          [
              [name: "api", folder: "api"],
              [name: "ui", folder: "ui"]
          ].each { m -> 
              j[m.name] = {
                  stage('a') {
                      echo "A"
                  }
                  stage('b') \{
                      echo "B"
                  }
              }
          }
          parallel j
      }}}
      

       

      declarative pipeline

       

      {{pipeline \{
          agent any;
          stages {
              stage("parallel") {
                  steps {
                      script {
                          def j=[:]
                          [
                              [name: "api", folder: "api"],
                              [name: "ui", folder: "ui"]
                          ].each { m -> 
                              j[m.name] = {
                                  stage('a') {
                                      echo "A"
                                  }
                                  stage('b') \{
                                      echo "B"
                                  }
                              }
                          }
                          parallel j
                      }
                  }
              }
          }
      }}}

      All the stages run but are not displayed.

      See related Stackoverflow question.

      Seems related to JENKINS-49050

      Attachments

        Activity

          jamesnolan James added a comment -

          Any idea when this can be resolved? Also having this issue and this is a major pain for my team.

          jamesnolan James added a comment - Any idea when this can be resolved? Also having this issue and this is a major pain for my team.
          funkyalgorithm Ulrich Berger added a comment -

          Is there a known workaround for this issue?

          funkyalgorithm Ulrich Berger added a comment - Is there a known workaround for this issue?

          People

            Unassigned Unassigned
            javydreamercsw javydreamercsw
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: