Class Condition
java.lang.Object
hudson.model.AbstractDescribableImpl<Condition>
pl.damianszczepanik.jenkins.buildhistorymanager.model.conditions.Condition
- All Implemented Interfaces:
Describable<Condition>
- Direct Known Subclasses:
BuildAgeRangeCondition,BuildDescriptionCondition,BuildNumberRangeCondition,BuildParameterCondition,BuildResultCondition,CauseCondition,FileScannerCondition,MatchEveryBuildCondition,TokenMacroCondition
Decides if the build matches given criteria to be updated or not.
- Author:
- Damian Szczepanik (damianszczepanik@github) (this class must be abstract, otherwise Jenkins reports warning with NullPointerException when the plusin is saved after update)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanmatches(Run<?, ?> run, RuleConfiguration configuration) Decides if the build matches given criteria to be updated or not.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
Condition
public Condition()
-
-
Method Details
-
matches
Decides if the build matches given criteria to be updated or not.- Parameters:
run- build which should be evaluatedconfiguration- configuration from the role- Returns:
trueif the build matches given criteria, otherwisefalse
-