Class PipelineNodeGraphAdapter
- java.lang.Object
-
- io.jenkins.plugins.pipelinegraphview.treescanner.PipelineNodeGraphAdapter
-
- All Implemented Interfaces:
PipelineGraphBuilderApi
,PipelineStepBuilderApi
public class PipelineNodeGraphAdapter extends Object implements PipelineGraphBuilderApi, PipelineStepBuilderApi
- Author:
- Tim Brown Adapter class that runs a 'PipelineNodeTreeVisitor' and adapts the outputs to look more like that of the original PipelineGraphNodeVisitor. The original PipelineGraphNodeVisitor code can be found here: https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeTreeVisitor.java
-
-
Constructor Summary
Constructors Constructor Description PipelineNodeGraphAdapter(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<FlowNodeWrapper>>
getAllSteps()
List<FlowNodeWrapper>
getPipelineNodes()
List<FlowNodeWrapper>
getStageSteps(String startNodeId)
Map<String,List<FlowNodeWrapper>>
getStep()
-
-
-
Method Detail
-
getPipelineNodes
public List<FlowNodeWrapper> getPipelineNodes()
- Specified by:
getPipelineNodes
in interfacePipelineGraphBuilderApi
-
getAllSteps
public Map<String,List<FlowNodeWrapper>> getAllSteps()
- Specified by:
getAllSteps
in interfacePipelineStepBuilderApi
-
getStageSteps
public List<FlowNodeWrapper> getStageSteps(String startNodeId)
- Specified by:
getStageSteps
in interfacePipelineStepBuilderApi
-
getStep
public Map<String,List<FlowNodeWrapper>> getStep()
-
-