File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/main/java/io/jenkins/plugins/pipelinegraphview/utils Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,14 @@ public static boolean isStep(FlowNode node) {
5353 if (node instanceof AtomNode ) {
5454 return true ;
5555 }
56- if (node instanceof StepStartNode && ! isStage ( node ) && ! isParallelBranch ( node ) ) {
56+ if (node instanceof StepStartNode ) {
5757 StepStartNode stepStartNode = (StepStartNode ) node ;
58- return stepStartNode .isBody ();
58+ boolean takesImplicitBlockArgument = false ;
59+ StepDescriptor sd = stepStartNode .getDescriptor ();
60+ if (sd != null ) {
61+ takesImplicitBlockArgument = sd .takesImplicitBlockArgument ();
62+ }
63+ return !isStage (node ) && !isParallelBranch (node ) && stepStartNode .isBody () && !takesImplicitBlockArgument ;
5964 }
6065 }
6166 return false ;
You can’t perform that action at this time.
0 commit comments