public class FlowNodeWrapper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FlowNodeWrapper.NodeType |
| Modifier and Type | Field and Description |
|---|---|
List<FlowNodeWrapper> |
edges |
FlowNodeWrapper.NodeType |
type |
| Constructor and Description |
|---|
FlowNodeWrapper(org.jenkinsci.plugins.workflow.graph.FlowNode node,
NodeRunStatus status,
org.jenkinsci.plugins.workflow.pipelinegraphanalysis.TimingInfo timingInfo,
org.jenkinsci.plugins.workflow.support.steps.input.InputStep inputStep,
org.jenkinsci.plugins.workflow.job.WorkflowRun run) |
FlowNodeWrapper(org.jenkinsci.plugins.workflow.graph.FlowNode node,
NodeRunStatus status,
org.jenkinsci.plugins.workflow.pipelinegraphanalysis.TimingInfo timingInfo,
org.jenkinsci.plugins.workflow.job.WorkflowRun run) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(FlowNodeWrapper edge) |
void |
addEdges(List<FlowNodeWrapper> edges) |
void |
addParent(FlowNodeWrapper parent) |
void |
addParents(Collection<FlowNodeWrapper> parents) |
boolean |
equals(Object obj) |
String |
getCauseOfFailure() |
String |
getDisplayName() |
FlowNodeWrapper |
getFirstParent() |
String |
getId() |
org.jenkinsci.plugins.workflow.support.steps.input.InputStep |
getInputStep() |
org.jenkinsci.plugins.workflow.graph.FlowNode |
getNode() |
List<FlowNodeWrapper> |
getParents() |
Collection<Action> |
getPipelineActions()
Returns Action instances that were attached to the associated FlowNode, or to any of its children
not represented in the graph.
|
<T extends Action> |
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.
|
org.jenkinsci.plugins.workflow.job.WorkflowRun |
getRun() |
NodeRunStatus |
getStatus() |
org.jenkinsci.plugins.workflow.pipelinegraphanalysis.TimingInfo |
getTiming() |
FlowNodeWrapper.NodeType |
getType() |
int |
hashCode() |
boolean |
probablySameNode(FlowNodeWrapper that)
Checks to see if `this` and `that` probably represent the same underlying pipeline graph node as far as the user
is concerned.
|
void |
setBlockErrorAction(org.jenkinsci.plugins.workflow.actions.ErrorAction blockErrorAction) |
void |
setCauseOfFailure(String causeOfFailure) |
void |
setPipelineActions(Collection<Action> pipelineActions) |
String |
toString() |
public final List<FlowNodeWrapper> edges
public final FlowNodeWrapper.NodeType type
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)
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)
public boolean probablySameNode(@Nullable FlowNodeWrapper that)
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.that - public org.jenkinsci.plugins.workflow.job.WorkflowRun getRun()
@Nonnull public NodeRunStatus getStatus()
@Nonnull public org.jenkinsci.plugins.workflow.pipelinegraphanalysis.TimingInfo getTiming()
@Nonnull public org.jenkinsci.plugins.workflow.graph.FlowNode getNode()
public FlowNodeWrapper.NodeType getType()
public void addEdge(FlowNodeWrapper edge)
public void addEdges(List<FlowNodeWrapper> edges)
public void addParent(FlowNodeWrapper parent)
public void addParents(Collection<FlowNodeWrapper> parents)
@CheckForNull public FlowNodeWrapper getFirstParent()
@Nonnull public List<FlowNodeWrapper> getParents()
public String getCauseOfFailure()
public void setCauseOfFailure(String causeOfFailure)
@CheckForNull public org.jenkinsci.plugins.workflow.support.steps.input.InputStep getInputStep()
public void setBlockErrorAction(org.jenkinsci.plugins.workflow.actions.ErrorAction blockErrorAction)
public <T extends Action> Collection<T> getPipelineActions(Class<T> clazz)
public Collection<Action> getPipelineActions()
public void setPipelineActions(Collection<Action> pipelineActions)
Copyright © 2016–2021. All rights reserved.