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

    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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: