Class PipelineStepVisitor

  • All Implemented Interfaces:
    org.jenkinsci.plugins.workflow.graphanalysis.SimpleChunkVisitor

    public class PipelineStepVisitor
    extends org.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor
    Gives steps inside - Stage boundary: Stage boundary ends where another another stage start or this stage block ends - branch boundary: branch block boundary
    Author:
    Vivek Pandey
    • Field Summary

      • Fields inherited from class org.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor

        chunk
    • Constructor Summary

      Constructors 
      Constructor Description
      PipelineStepVisitor​(org.jenkinsci.plugins.workflow.job.WorkflowRun run, org.jenkinsci.plugins.workflow.graph.FlowNode node)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void 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)  
      FlowNodeWrapper getStep​(String id)  
      List<FlowNodeWrapper> getSteps()  
      protected void handleChunkDone​(org.jenkinsci.plugins.workflow.graphanalysis.MemoryFlowChunk chunk)  
      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

        parallelEnd, parallelStart, resetChunk
    • Constructor Detail

      • PipelineStepVisitor

        public PipelineStepVisitor​(org.jenkinsci.plugins.workflow.job.WorkflowRun run,
                                   @Nullable
                                   org.jenkinsci.plugins.workflow.graph.FlowNode node)
    • Method Detail

      • 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 interface org.jenkinsci.plugins.workflow.graphanalysis.SimpleChunkVisitor
        Overrides:
        parallelBranchStart in class org.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 interface org.jenkinsci.plugins.workflow.graphanalysis.SimpleChunkVisitor
        Overrides:
        parallelBranchEnd in class org.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 interface org.jenkinsci.plugins.workflow.graphanalysis.SimpleChunkVisitor
        Overrides:
        chunkStart in class org.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 interface org.jenkinsci.plugins.workflow.graphanalysis.SimpleChunkVisitor
        Overrides:
        chunkEnd in class org.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor
      • handleChunkDone

        protected void handleChunkDone​(@Nonnull
                                       org.jenkinsci.plugins.workflow.graphanalysis.MemoryFlowChunk chunk)
        Overrides:
        handleChunkDone in class org.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 interface org.jenkinsci.plugins.workflow.graphanalysis.SimpleChunkVisitor
        Overrides:
        atomNode in class org.jenkinsci.plugins.workflow.graphanalysis.StandardChunkVisitor