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

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 Details

    • Condition

      public Condition()
  • Method Details

    • 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 evaluated
      configuration - configuration from the role
      Returns:
      true if the build matches given criteria, otherwise false