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

public class TokenMacroCondition extends Condition
Matches macro with given value.
Author:
Damian Szczepanik (damianszczepanik@github)
  • Constructor Details

    • TokenMacroCondition

      @DataBoundConstructor public TokenMacroCondition(String template, String value)
  • Method Details

    • getTemplate

      public String getTemplate()
    • getValue

      public String getValue()
    • 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