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

Fix the representation of Parallel Stage in pipeline build (as it is delivery pipeline view)

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • jenkins 1.651 LTS

      Fix the representation of Parallel Stage in pipeline build (as it is delivery pipeline view)

      1) With a Pipeline build
      This is my pipeline script

      node {
      stage 'compile'
      git 'https://github.com/hermod/hermod-java-ser-impl.git'

      def mvnHome = tool 'maven-3.3.9'
      sh "${mvnHome}/bin/mvn -DskipTests clean install"

      def deployments = [:]
      deployments["dev"] =

      { stage 'deployOnDev' echo 'deployOnDev' }

      deployments["uat"] =

      { stage 'deployOnUat' echo 'deployOnUat' }

      parallel deployments

      stage 'deployed'
      echo 'deployed'

      }

      See the representation in pipeline-screenshot.png

      2) With n build + Delivery Pipeline View
      See the representation I want to have in delivery-pipeline-view-screenshot.png

      I'm not sure but it seems close to this issue https://issues.jenkins-ci.org/browse/JENKINS-33185

      Thanks in advance

          [JENKINS-34696] Fix the representation of Parallel Stage in pipeline build (as it is delivery pipeline view)

          Alexandre Navarro created issue -

          Sam Van Oort added a comment -

          alexandre_navarro I can understand the confusion, but parallel blocks may not contain stage steps within them: due to how stages are implemented within the pipeline, this is not a valid case. However, the labelled step enhancement will allow for naming chunks of code within blocks, and JENKINS-33185 can (and will) scan for the labels used to define each parallel branch.

          I am going to close this one out, since it's not possible with stages and the intended goal is already covered by the other enhancement.

          Sam Van Oort added a comment - alexandre_navarro I can understand the confusion, but parallel blocks may not contain stage steps within them: due to how stages are implemented within the pipeline, this is not a valid case. However, the labelled step enhancement will allow for naming chunks of code within blocks, and JENKINS-33185 can (and will) scan for the labels used to define each parallel branch. I am going to close this one out, since it's not possible with stages and the intended goal is already covered by the other enhancement.
          Sam Van Oort made changes -
          Link New: This issue duplicates JENKINS-33185 [ JENKINS-33185 ]
          Sam Van Oort made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Sam Van Oort made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170872 ] New: JNJira + In-Review [ 210013 ]

            svanoort Sam Van Oort
            schumnana Alexandre Navarro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: