Skip to content

Commit c43fb63

Browse files
authored
Use NodeRunStatus(FlowNode) to determine the status for StepNodes (#383)
1 parent 8959b75 commit c43fb63

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/io/jenkins/plugins/pipelinegraphview/treescanner/NodeRelationship.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ public FlowNode getEnd() {
115115
dump(
116116
"Calculating Chunk Status start: %s, end: %s after: %s",
117117
this.start.getId(), this.end.getId(), (this.after != null) ? this.after.getId() : "null");
118+
119+
// If start and end are equal this is a StepNode
120+
if (this.start.getId().equals(this.end.getId())) {
121+
return new NodeRunStatus(this.start);
122+
}
123+
118124
// Catch-all if none of the above are applicable.
119125
return new NodeRunStatus(
120126
StatusAndTiming.computeChunkStatus2(run, this.before, this.start, this.end, this.after));

0 commit comments

Comments
 (0)