Class BuildNumberRangeCondition

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

public class BuildNumberRangeCondition extends Condition
Matches builds with build number between given number range.
Author:
Damian Szczepanik (damianszczepanik@github)
  • Constructor Details

    • BuildNumberRangeCondition

      @DataBoundConstructor public BuildNumberRangeCondition()
  • Method Details

    • getMinBuildNumber

      public int getMinBuildNumber()
    • setMinBuildNumber

      @DataBoundSetter public void setMinBuildNumber(int minBuildNumber)
    • getMaxBuildNumber

      public int getMaxBuildNumber()
    • setMaxBuildNumber

      @DataBoundSetter public void setMaxBuildNumber(int maxBuildNumber)
    • 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