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 Details

    • PipelineNodeGraphAdapter

      public PipelineNodeGraphAdapter(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
    • PipelineNodeGraphAdapter

      public PipelineNodeGraphAdapter(org.jenkinsci.plugins.workflow.job.WorkflowRun run, Collection<org.jenkinsci.plugins.workflow.graph.FlowNode> preCollectedNodes)
      Builds the adapter over a pre-collected node set rather than walking the execution.
    • PipelineNodeGraphAdapter

      public PipelineNodeGraphAdapter(org.jenkinsci.plugins.workflow.job.WorkflowRun run, Collection<org.jenkinsci.plugins.workflow.graph.FlowNode> preCollectedNodes, @CheckForNull Map<String,List<String>> enclosingIdsByNodeId, @CheckForNull Set<String> activeNodeIds)
      Builds the adapter over a pre-collected node set plus pre-computed snapshot data. Supply enclosingIdsByNodeId to read ancestry from the map instead of FlowNode storage, and activeNodeIds to use the set for per-node liveness checks.
  • Method Details