| Code changed in jenkins User: Andrew Bayer Path: src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/ast/ModelASTStep.groovy src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/validator/ModelValidator.groovy src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/ValidatorTest.java src/test/resources/errors/rejectParallelMixedInSteps.groovy http://jenkins-ci.org/commit/pipeline-model-definition-plugin/cb86d2ba560a5d89005495876376d549fc6a1b44 Log: [FIXED JENKINS-37828] Properly reject parallel. More notably, reject it when it's not the only step in a block. In the JSON representation, we don't even use the term parallel - we just have multiple branches. In the groovy parsing, we look for parallel as the only step in a stage and treat it differently (resulting in multiple branches). So any time we see parallel as a step by the time we get to validation, well, it's wrong. So, yeah. |