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

Declarative Pipeline: post step of a parallel step is no more executed since 1.2.5

    XMLWordPrintable

    Details

    • Sprint:
      Pipeline - December
    • Similar Issues:

      Description

      Hi,

      Since I update the Pipeline: Declarative plugin to version 1.2.5 the post action is no more executed.

      This can be reproduced using this Jenkinsfile:

      pipeline {
        agent none
        stages {
          stage('Parallel') {
            parallel {
              stage('Child 1') {
                agent any
                steps { echo 'Child 1' }
              }
              stage('Child 2') {
                agent any
                steps { echo 'Child 2' }
              }
            }
            post {
              always {
                echo 'Post'
              }
            }
          }
        }
      }

      It works as expected using the version 1.2.4 of the plugin.

      Here a Dockerfile that helped me to see the difference of the behavior with the 2 versions:

      FROM jenkins/jenkins:lts
      
      USER jenkins
      
      # Install plugins
      # fixed version of pipeline-model-definition-plugin because post action job is no more executed with 1.2.5
      RUN /usr/local/bin/install-plugins.sh pipeline-model-definition:1.2.4 mock-slave workflow-aggregator blueocean hipchat ssh-slaves gradle pipeline-maven

        Attachments

          Issue Links

            Activity

            drautureau drautureau created issue -
            drautureau drautureau made changes -
            Field Original Value New Value
            Description Hi,

            Since I update the {{Pipeline: Declarative}} plugin to version 1.2.5 the post action is no more executed.

            This can be reproduced using this Jenkinsfile:
            {code:java}
            pipeline {
              agent none
              stages {
                stage('Parallel') {
                  parallel {
                    stage('Child 1') {
                      agent any
                      steps { echo 'Child 1' }
                    }
                    stage('Child 2') {
                      agent any
                      steps { echo 'Child 2' }
                    }
                  }
                  post {
                    always {
                      echo 'Post'
                    }
                  }
                }
              }
            }{code}
            It works as expected using the version 1.2.4 of the plugin.

            Here a Dockerfile that helps me to see the difference of the behavior with the 2 versions:
            {code:java}
            FROM jenkins/jenkins:lts

            USER jenkins

            # Install plugins
            # fixed version of pipeline-model-definition-plugin because post action job is no more executed with 1.2.5
            RUN /usr/local/bin/install-plugins.sh pipeline-model-definition:1.2.4 mock-slave workflow-aggregator blueocean hipchat ssh-slaves gradle pipeline-maven{code}
            Hi,

            Since I update the {{Pipeline: Declarative}} plugin to version 1.2.5 the post action is no more executed.

            This can be reproduced using this Jenkinsfile:
            {code:java}
            pipeline {
              agent none
              stages {
                stage('Parallel') {
                  parallel {
                    stage('Child 1') {
                      agent any
                      steps { echo 'Child 1' }
                    }
                    stage('Child 2') {
                      agent any
                      steps { echo 'Child 2' }
                    }
                  }
                  post {
                    always {
                      echo 'Post'
                    }
                  }
                }
              }
            }{code}
            It works as expected using the version 1.2.4 of the plugin.

            Here a Dockerfile that helped me to see the difference of the behavior with the 2 versions:
            {code:java}
            FROM jenkins/jenkins:lts

            USER jenkins

            # Install plugins
            # fixed version of pipeline-model-definition-plugin because post action job is no more executed with 1.2.5
            RUN /usr/local/bin/install-plugins.sh pipeline-model-definition:1.2.4 mock-slave workflow-aggregator blueocean hipchat ssh-slaves gradle pipeline-maven{code}
            abayer Andrew Bayer made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #225 (Web Link)" [ 18160 ]
            jamesdumay James Dumay made changes -
            Sprint Pipeline - December [ 446 ]
            jamesdumay James Dumay made changes -
            Rank Ranked lower
            abayer Andrew Bayer made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                drautureau drautureau
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: