Class BuildDescriptionCondition

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

public class BuildDescriptionCondition extends Condition
Matches builds that description is equal, contains or matches given pattern.
Author:
Damian Szczepanik (damianszczepanik@github)
  • Constructor Details

    • BuildDescriptionCondition

      @DataBoundConstructor public BuildDescriptionCondition()
  • Method Details

    • getPattern

      public String getPattern()
    • setPattern

      @DataBoundSetter public void setPattern(String pattern)
    • getMatchingMethod

      public String getMatchingMethod()
    • setMatchingMethod

      @DataBoundSetter public void setMatchingMethod(String matchingMethod)
    • 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