Class NodeCondition
- java.lang.Object
-
- org.jenkins_ci.plugins.run_condition.RunCondition
-
- org.jenkins_ci.plugins.run_condition.common.AlwaysPrebuildRunCondition
-
- org.jenkins_ci.plugins.run_condition.core.NodeCondition
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RunCondition>
public final class NodeCondition extends AlwaysPrebuildRunCondition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeCondition.NodeConditionDescriptor
-
Nested classes/interfaces inherited from class org.jenkins_ci.plugins.run_condition.RunCondition
RunCondition.RunConditionDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description NodeCondition(List<String> allowedNodes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAllowedNodes()
static List<String>
getNodeNamesForSelection()
returns all available nodes plus an identifier to identify all slaves at position one.boolean
runPerform(AbstractBuild<?,?> build, BuildListener listener)
Decide whether to run the perform method in the BuildStep.-
Methods inherited from class org.jenkins_ci.plugins.run_condition.common.AlwaysPrebuildRunCondition
runPrebuild
-
Methods inherited from class org.jenkins_ci.plugins.run_condition.RunCondition
all, getDescriptor
-
-
-
-
Method Detail
-
runPerform
public boolean runPerform(AbstractBuild<?,?> build, BuildListener listener)
Description copied from class:RunCondition
Decide whether to run the perform method in the BuildStep.- Specified by:
runPerform
in classRunCondition
- Returns:
- true if the perform method of the BuildStep should run
-
-