java.lang.Object
hudson.model.AbstractDescribableImpl<Condition>
pl.damianszczepanik.jenkins.buildhistorymanager.model.conditions.Condition
pl.damianszczepanik.jenkins.buildhistorymanager.model.conditions.BuildAgeRangeCondition
All Implemented Interfaces:
Describable<Condition>

public class BuildAgeRangeCondition extends Condition
Matches builds that age is between given days range. It calculates days only without checking build time.
Author:
Damian Szczepanik (damianszczepanik@github)
  • Constructor Details

    • BuildAgeRangeCondition

      @DataBoundConstructor public BuildAgeRangeCondition()
  • Method Details

    • getMinDaysAge

      public int getMinDaysAge()
    • setMinDaysAge

      @DataBoundSetter public void setMinDaysAge(int minDaysAge)
    • getMaxDaysAge

      public int getMaxDaysAge()
    • setMaxDaysAge

      @DataBoundSetter public void setMaxDaysAge(int maxDaysAge)
    • matches

      public boolean matches(Run<?,?> run, RuleConfiguration configuration)
      Description copied from class: Condition
      Decides if the build matches given criteria to be updated or not.
      Specified by:
      matches in class Condition
      Parameters:
      run - build which should be evaluated
      configuration - configuration from the role
      Returns:
      true if the build matches given criteria, otherwise false
    • clearTime

      protected void clearTime(Calendar calendar)