Class FlowNodeUtils

java.lang.Object
io.jenkins.plugins.checks.utils.FlowNodeUtils

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class FlowNodeUtils extends Object
Utility methods for working with FlowNodes.
  • Method Details

    • getEnclosingStagesAndParallels

      @NonNull public static List<org.jenkinsci.plugins.workflow.graph.FlowNode> getEnclosingStagesAndParallels(org.jenkinsci.plugins.workflow.graph.FlowNode node)
      Get the stage and parallel branch start node IDs (not the body nodes) for this node, innermost first.
      Parameters:
      node - A flownode.
      Returns:
      A nonnull, possibly empty list of stage/parallel branch start nodes, innermost first.
    • getEnclosingBlockNames

      @NonNull public static List<String> getEnclosingBlockNames(@NonNull List<org.jenkinsci.plugins.workflow.graph.FlowNode> nodes)
      Get the stage and parallel branch names for these nodes, innermost first.
      Parameters:
      nodes - A flownode.
      Returns:
      A nonnull, possibly empty list of stage/parallel branch names, innermost first.