Class PipelineStepVisitor
java.lang.Object
org.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor
io.jenkins.plugins.pipelinegraphview.utils.legacy.PipelineStepVisitor
- All Implemented Interfaces:
PipelineStepBuilderApi
,org.jenkinsci.plugins.workflow.graphanalysis.SimpleChunkVisitor
public class PipelineStepVisitor
extends org.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor
implements PipelineStepBuilderApi
Gives steps in a given FlowGraph and assigned them to the nearing stage or
parallel block
boundary.
Original source: https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineStepVisitor.java
- Author:
- Vivek Pandey, Tim Brown
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor
chunk
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
atomNode
(org.jenkinsci.plugins.workflow.graph.FlowNode before, org.jenkinsci.plugins.workflow.graph.FlowNode atomNode, org.jenkinsci.plugins.workflow.graph.FlowNode after, org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner scan) void
chunkEnd
(org.jenkinsci.plugins.workflow.graph.FlowNode endNode, org.jenkinsci.plugins.workflow.graph.FlowNode afterChunk, org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner scanner) void
chunkStart
(org.jenkinsci.plugins.workflow.graph.FlowNode startNode, org.jenkinsci.plugins.workflow.graph.FlowNode beforeBlock, org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner scanner) getStageSteps
(String startNodeId) boolean
void
parallelBranchEnd
(org.jenkinsci.plugins.workflow.graph.FlowNode parallelStartNode, org.jenkinsci.plugins.workflow.graph.FlowNode branchEndNode, org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner scanner) void
parallelBranchStart
(org.jenkinsci.plugins.workflow.graph.FlowNode parallelStartNode, org.jenkinsci.plugins.workflow.graph.FlowNode branchStartNode, org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner scanner) Methods inherited from class org.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor
handleChunkDone, parallelEnd, parallelStart, resetChunk
-
Constructor Details
-
PipelineStepVisitor
public PipelineStepVisitor(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
-
-
Method Details
-
parallelBranchStart
public void parallelBranchStart(@NonNull org.jenkinsci.plugins.workflow.graph.FlowNode parallelStartNode, @NonNull org.jenkinsci.plugins.workflow.graph.FlowNode branchStartNode, @NonNull org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner scanner) - Specified by:
parallelBranchStart
in interfaceorg.jenkinsci.plugins.workflow.graphanalysis.SimpleChunkVisitor
- Overrides:
parallelBranchStart
in classorg.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor
-
parallelBranchEnd
public void parallelBranchEnd(@NonNull org.jenkinsci.plugins.workflow.graph.FlowNode parallelStartNode, @NonNull org.jenkinsci.plugins.workflow.graph.FlowNode branchEndNode, @NonNull org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner scanner) - Specified by:
parallelBranchEnd
in interfaceorg.jenkinsci.plugins.workflow.graphanalysis.SimpleChunkVisitor
- Overrides:
parallelBranchEnd
in classorg.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor
-
chunkStart
public void chunkStart(@NonNull org.jenkinsci.plugins.workflow.graph.FlowNode startNode, @CheckForNull org.jenkinsci.plugins.workflow.graph.FlowNode beforeBlock, @NonNull org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner scanner) - Specified by:
chunkStart
in interfaceorg.jenkinsci.plugins.workflow.graphanalysis.SimpleChunkVisitor
- Overrides:
chunkStart
in classorg.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor
-
chunkEnd
public void chunkEnd(@NonNull org.jenkinsci.plugins.workflow.graph.FlowNode endNode, @CheckForNull org.jenkinsci.plugins.workflow.graph.FlowNode afterChunk, @NonNull org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner scanner) - Specified by:
chunkEnd
in interfaceorg.jenkinsci.plugins.workflow.graphanalysis.SimpleChunkVisitor
- Overrides:
chunkEnd
in classorg.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor
-
atomNode
public void atomNode(@CheckForNull org.jenkinsci.plugins.workflow.graph.FlowNode before, @NonNull org.jenkinsci.plugins.workflow.graph.FlowNode atomNode, @CheckForNull org.jenkinsci.plugins.workflow.graph.FlowNode after, @NonNull org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner scan) - Specified by:
atomNode
in interfaceorg.jenkinsci.plugins.workflow.graphanalysis.SimpleChunkVisitor
- Overrides:
atomNode
in classorg.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor
-
getStageSteps
- Specified by:
getStageSteps
in interfacePipelineStepBuilderApi
-
getAllSteps
- Specified by:
getAllSteps
in interfacePipelineStepBuilderApi
-
getStep
-
isDeclarative
public boolean isDeclarative()
-