Class NumericalComparisonCondition
- 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.NumericalComparisonCondition
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RunCondition>
public final class NumericalComparisonCondition extends AlwaysPrebuildRunCondition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NumericalComparisonCondition.Comparator
static class
NumericalComparisonCondition.EqualTo
static class
NumericalComparisonCondition.GreaterThan
static class
NumericalComparisonCondition.GreaterThanOrEqualTo
static class
NumericalComparisonCondition.LessThan
static class
NumericalComparisonCondition.LessThanOrEqualTo
static class
NumericalComparisonCondition.NotEqualTo
static class
NumericalComparisonCondition.NumericalComparisonConditionDescriptor
-
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 NumericalComparisonCondition(String lhs, String rhs, NumericalComparisonCondition.Comparator comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumericalComparisonCondition.Comparator
getComparator()
String
getLhs()
String
getRhs()
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
-
-
-
-
Constructor Detail
-
NumericalComparisonCondition
@DataBoundConstructor public NumericalComparisonCondition(String lhs, String rhs, NumericalComparisonCondition.Comparator comparator)
-
-
Method Detail
-
getLhs
public String getLhs()
-
getRhs
public String getRhs()
-
getComparator
public NumericalComparisonCondition.Comparator getComparator()
-
runPerform
public boolean runPerform(AbstractBuild<?,?> build, BuildListener listener) throws Exception
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
- Throws:
Exception
-
-