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

The same parallel scripted and declarative pipelines rendered differently

    XMLWordPrintable

Details

    Description

      Hello, I'm trying to migrate my Declarative pipelines to scripted ones and cannot reproduce behavior completely.

      In order to visualize issue I created 2 identical pipelines defined in a scripted way and in a declarative way.

       

      Scripted:

      node {
          stage("Build") {
              parallel([
                  "Android":{ stage("Android"){ stage("a"){ echo "x" }; stage("a1"){ echo "x" }}},
                  "iOS":{ stage("iOS"){stage("b"){ echo "x" }; stage("a2"){ echo "x" }}}
              ])
          }
      }
      

      Declarative:

      pipeline {
          agent any
          stages {
              stage('Build') {
                  failFast true
                  parallel {
                      stage('Android') {
                          stages {
                              stage('a') { steps { echo "x"} }
                              stage('a1') { steps { echo "x"} }
                          }
                      }
                      stage('iOS') {
                          stages {
                              stage('b') { steps { echo "x"} }
                              stage('b1') { steps { echo "x"} }
                          }
                      }
                  }
              }
          }
      }
      

       

      Attachments

        1. declarative.log
          1 kB
        2. declarative.png
          declarative.png
          23 kB
        3. scripted.log
          1 kB
        4. scripted.png
          scripted.png
          22 kB

        Issue Links

          Activity

            trane9991 Taras Postument created issue -
            trane9991 Taras Postument made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-39464 [ JENKINS-39464 ]
            trane9991 Taras Postument made changes -
            Link This issue duplicates JENKINS-53162 [ JENKINS-53162 ]
            zionyx KY Lee made changes -
            Link This issue relates to JENKINS-55438 [ JENKINS-55438 ]
            zionyx KY Lee made changes -
            Link This issue relates to JENKINS-55438 [ JENKINS-55438 ]
            zionyx KY Lee made changes -
            Link This issue is related to JENKINS-55438 [ JENKINS-55438 ]
            tharilya tharilya added a comment -

            This Seems to be solved in the current version of the plugin.

            Can you confirm that? trane9991

            tharilya tharilya added a comment - This Seems to be solved in the current version of the plugin. Can you confirm that? trane9991

            Yup, thanks!

            trane9991 Taras Postument added a comment - Yup, thanks!
            trane9991 Taras Postument made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            trane9991 Taras Postument made changes -
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]

            People

              Unassigned Unassigned
              trane9991 Taras Postument
              Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: