Class PipelineNodeTreeScanner
java.lang.Object
io.jenkins.plugins.pipelinegraphview.treescanner.PipelineNodeTreeScanner
Generates a Tree Representation of the DAG.
- Author:
- Tim Brown
-
Constructor Summary
ConstructorsConstructorDescriptionPipelineNodeTreeScanner(org.jenkinsci.plugins.workflow.job.WorkflowRun run) PipelineNodeTreeScanner(org.jenkinsci.plugins.workflow.job.WorkflowRun run, Collection<org.jenkinsci.plugins.workflow.graph.FlowNode> nodes, Map<String, List<String>> enclosingIdsByNodeId, Set<String> activeNodeIds) Builds from a caller-supplied node collection, skipping theDepthFirstScannerwalk. -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild()Builds the flow node graph.getStageSteps(String startNodeId) boolean
-
Constructor Details
-
PipelineNodeTreeScanner
public PipelineNodeTreeScanner(@NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run) -
PipelineNodeTreeScanner
public PipelineNodeTreeScanner(@NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run, @NonNull Collection<org.jenkinsci.plugins.workflow.graph.FlowNode> nodes, @CheckForNull Map<String, List<String>> enclosingIdsByNodeId, @CheckForNull Set<String> activeNodeIds) Builds from a caller-supplied node collection, skipping theDepthFirstScannerwalk. The caller is responsible for having observed every node already. SupplyenclosingIdsByNodeIdto read ancestry from the map instead of FlowNode storage, andactiveNodeIdsto use the set for liveness checks instead ofFlowNode.isActive().
-
-
Method Details
-
build
public void build()Builds the flow node graph. -
getStageSteps
-
getAllSteps
-
getPipelineNodes
-
getPipelineNodeMap
-
isDeclarative
public boolean isDeclarative()
-