As discussed with Andrew Bayer,
This will enable BO to provide appropriate visualization of these stages.
Work-in-progress on PR up - https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/13
New PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/47
Code changed in jenkins User: Andrew Bayer Path: pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/b7c196b003815b1ad3153629bd928c5abb662d2e Log: Run empty stages for conditionally-skipped stages.
This is just a band-aid until JENKINS-38153 lands with a better solution involving tags metadata and all that jazz, but this'll at least make sure our execution plan matches reality for now.
Code changed in jenkins User: Andrew Bayer Path:
pipeline-model-api/pom.xml pipeline-model-declarative-agent/pom.xml pipeline-model-definition/pom.xml pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/SyntheticStage.groovy pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/agent/impl/DockerPipelineScript.groovy pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/BasicModelDefTest.java pipeline-model-definition/src/test/resources/noToolSyntheticStage.groovy pipeline-model-definition/src/test/resources/syntheticStages.groovy pom.xml http://jenkins-ci.org/commit/pipeline-model-definition-plugin/f88d2ccd2b235030a604d7e6a6f9a4cb2f1b4f99 Log: [FIXED JENKINS-38153] Added synthetic stages using TagsAction.
This is downstream of https://github.com/jenkinsci/workflow-api-plugin/pull/24
Bulk closing resolved issues.