Class FlowNodeUtils


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

      • FlowNodeUtils

        public FlowNodeUtils()
    • Method Detail

      • 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.