-
Bug
-
Resolution: Fixed
-
Minor
With nested parallel branch, parallelStartNode is passed as null. Its supposed to be non-null value, this behavior has consequence of causing NPE.
public void parallelBranchStart(@Nonnull FlowNode parallelStartNode, @Nonnull FlowNode branchStartNode, @Nonnull ForkScanner scanner) {}
node { stage ('test') { echo ('Testing'); parallel nestedBranch: { echo 'nested Branch' stage('nestedBranchStage') { echo 'running nestedBranchStage' parallel secondLevelNestedBranch1: { echo 'secondLevelNestedBranch1' } } }, failFast: false } }
- links to
Probably also needs the parallelStartPredicate to be set automatically if not done currently:
public static Predicate<FlowNode> PARALLEL_START_PREDICATE = new Predicate<FlowNode>() {
{ return input != null && input instanceof StepStartNode && (((StepStartNode) input).getDescriptor().getClass() == ParallelStep.DescriptorImpl.class); }@Override
public boolean apply(FlowNode input)
};
ForkScanner.setParallelStartPredicate(PARALLEL_START_PREDICATE);