public class PipelineNodeUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Predicate<org.jenkinsci.plugins.workflow.graph.FlowNode> |
isLoggable |
| Constructor and Description |
|---|
PipelineNodeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCauseOfBlockage(org.jenkinsci.plugins.workflow.graph.FlowNode stage,
org.jenkinsci.plugins.workflow.graph.FlowNode nodeBlock)
Gives cause of block for declarative style plugin where agent (node block) is declared inside a stage.
|
static String |
getDisplayName(org.jenkinsci.plugins.workflow.graph.FlowNode node) |
static org.jenkinsci.plugins.workflow.actions.TagsAction |
getSyntheticStage(org.jenkinsci.plugins.workflow.graph.FlowNode node) |
static boolean |
isAgentStart(org.jenkinsci.plugins.workflow.graph.FlowNode node)
Determine if the given
FlowNode is the initial StepStartNode for an ExecutorStep. |
static boolean |
isParallelBranch(org.jenkinsci.plugins.workflow.graph.FlowNode node) |
static boolean |
isPausedForInputStep(org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode step,
org.jenkinsci.plugins.workflow.support.steps.input.InputAction inputAction) |
static boolean |
isPostSyntheticStage(org.jenkinsci.plugins.workflow.graph.FlowNode node) |
static boolean |
isPreSyntheticStage(org.jenkinsci.plugins.workflow.graph.FlowNode node) |
static boolean |
isSkippedStage(org.jenkinsci.plugins.workflow.graph.FlowNode node) |
static boolean |
isStage(org.jenkinsci.plugins.workflow.graph.FlowNode node) |
static boolean |
isSyntheticStage(org.jenkinsci.plugins.workflow.graph.FlowNode node) |
public static final com.google.common.base.Predicate<org.jenkinsci.plugins.workflow.graph.FlowNode> isLoggable
public static String getDisplayName(@Nonnull org.jenkinsci.plugins.workflow.graph.FlowNode node)
public static boolean isStage(org.jenkinsci.plugins.workflow.graph.FlowNode node)
public static boolean isSyntheticStage(@Nullable org.jenkinsci.plugins.workflow.graph.FlowNode node)
@CheckForNull public static org.jenkinsci.plugins.workflow.actions.TagsAction getSyntheticStage(@Nullable org.jenkinsci.plugins.workflow.graph.FlowNode node)
public static boolean isPostSyntheticStage(@Nullable org.jenkinsci.plugins.workflow.graph.FlowNode node)
public static boolean isSkippedStage(@Nullable org.jenkinsci.plugins.workflow.graph.FlowNode node)
public static boolean isPreSyntheticStage(@Nullable org.jenkinsci.plugins.workflow.graph.FlowNode node)
public static boolean isParallelBranch(@Nullable org.jenkinsci.plugins.workflow.graph.FlowNode node)
@CheckForNull public static String getCauseOfBlockage(@Nonnull org.jenkinsci.plugins.workflow.graph.FlowNode stage, @Nullable org.jenkinsci.plugins.workflow.graph.FlowNode nodeBlock)
pipeline {
agent none
stages {
stage ('first') {
agent {
label 'first'
}
steps{
sh 'echo "from first"'
}
}
}
}
stage - stage's FlowNodenodeBlock - agent or node block's FlowNodepublic static boolean isPausedForInputStep(@Nonnull org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode step, @Nullable org.jenkinsci.plugins.workflow.support.steps.input.InputAction inputAction)
public static boolean isAgentStart(@Nullable org.jenkinsci.plugins.workflow.graph.FlowNode node)
FlowNode is the initial StepStartNode for an ExecutorStep.node - a possibly null FlowNodenode is the non-body start of the agent execution.Copyright © 2016–2021. All rights reserved.