Class FlowNodeWrapper

java.lang.Object
io.jenkins.blueocean.rest.impl.pipeline.FlowNodeWrapper

public class FlowNodeWrapper extends Object
Author:
Vivek Pandey
  • Field Details Link icon

  • Constructor Details Link icon

    • FlowNodeWrapper Link icon

      public FlowNodeWrapper(@NonNull org.jenkinsci.plugins.workflow.graph.FlowNode node, @NonNull NodeRunStatus status, @NonNull org.jenkinsci.plugins.workflow.pipelinegraphanalysis.TimingInfo timingInfo, @NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run)
    • FlowNodeWrapper Link icon

      public FlowNodeWrapper(@NonNull org.jenkinsci.plugins.workflow.graph.FlowNode node, @NonNull NodeRunStatus status, @NonNull org.jenkinsci.plugins.workflow.pipelinegraphanalysis.TimingInfo timingInfo, @Nullable org.jenkinsci.plugins.workflow.support.steps.input.InputStep inputStep, @NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run)
  • Method Details Link icon

    • probablySameNode Link icon

      public boolean probablySameNode(@Nullable FlowNodeWrapper that)
      Checks to see if `this` and `that` probably represent the same underlying pipeline graph node as far as the user is concerned. This is sloppier than an exact name and ID match because PipelineNodeGraphVisitor as of 2019-05-17 can return some nodes with different IDs during a build as opposed to once the build is complete. As such we check name, type, and firstParent. But we need to check firstParent the same way for the same reason.
      Parameters:
      that -
      Returns:
    • getRun Link icon

      public org.jenkinsci.plugins.workflow.job.WorkflowRun getRun()
    • getDisplayName Link icon

      @NonNull public String getDisplayName()
    • getStatus Link icon

      @NonNull public NodeRunStatus getStatus()
    • getTiming Link icon

      @NonNull public org.jenkinsci.plugins.workflow.pipelinegraphanalysis.TimingInfo getTiming()
    • getId Link icon

      @NonNull public String getId()
    • getNode Link icon

      @NonNull public org.jenkinsci.plugins.workflow.graph.FlowNode getNode()
    • getType Link icon

      public FlowNodeWrapper.NodeType getType()
    • addEdge Link icon

      public void addEdge(FlowNodeWrapper edge)
    • addEdges Link icon

      public void addEdges(List<FlowNodeWrapper> edges)
    • addParent Link icon

      public void addParent(FlowNodeWrapper parent)
    • addParents Link icon

      public void addParents(Collection<FlowNodeWrapper> parents)
    • getFirstParent Link icon

      @CheckForNull public FlowNodeWrapper getFirstParent()
    • getParents Link icon

      @NonNull public List<FlowNodeWrapper> getParents()
    • getCauseOfFailure Link icon

      public String getCauseOfFailure()
    • setCauseOfFailure Link icon

      public void setCauseOfFailure(String causeOfFailure)
    • equals Link icon

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getInputStep Link icon

      @CheckForNull public org.jenkinsci.plugins.workflow.support.steps.input.InputStep getInputStep()
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • setBlockErrorAction Link icon

      public void setBlockErrorAction(org.jenkinsci.plugins.workflow.actions.ErrorAction blockErrorAction)
    • getPipelineActions Link icon

      public <T extends Action> Collection<T> getPipelineActions(Class<T> clazz)
      Returns Action instances that were attached to the associated FlowNode, or to any of its children not represented in the graph. Filters by class to mimic Item.getActions(class).
    • getPipelineActions Link icon

      public Collection<Action> getPipelineActions()
      Returns Action instances that were attached to the associated FlowNode, or to any of its children not represented in the graph.
    • setPipelineActions Link icon

      public void setPipelineActions(Collection<Action> pipelineActions)