-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Blocker
-
Resolution: Fixed
-
Component/s: pipeline-model-definition-plugin
-
Labels:None
-
Environment:pipeline-model-definition-plugin 1.2.5
Jenkins 2.60.3, 2.73.3
-
Sprint:Pipeline - December
-
Similar Issues:
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
- links to
Code changed in jenkins
User: Andrew Bayer
Path:
pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/PostStageTest.java
pipeline-model-definition/src/test/resources/postStage/postAfterParallel.groovy
http://jenkins-ci.org/commit/pipeline-model-definition-plugin/32c5e4178c89faca3ad184b4030d8f403425bdac
Log:
Merge pull request #225 from abayer/jenkins-48266
[FIXED JENKINS-48266] Skip post for skipped parallel stages
Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/f26ad78e5c37...32c5e4178c89