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
,BuildNumberRangeCondition
,BuildResultCondition
,CauseCondition
,MatchEveryBuildCondition
,TokenMacroCondition
public abstract class Condition extends AbstractDescribableImpl<Condition>
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 Constructor Description Condition()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract 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
-
-
-
-
Method Detail
-
matches
public abstract boolean matches(Run<?,?> run, RuleConfiguration configuration)
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
-
-