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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • None
    • pipeline-model-definition-plugin 1.2.5
      Jenkins 2.60.3, 2.73.3
    • Pipeline - December

      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

            abayer Andrew Bayer
            drautureau drautureau
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: