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
,BuildResultCondition
,CauseCondition
,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
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
matches
(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:
true
if the build matches given criteria, otherwisefalse
-