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

public class Rule extends AbstractDescribableImpl<Rule>
Author:
Damian Szczepanik (damianszczepanik@github)
  • Constructor Details

  • Method Details

    • getConditions

      public List<Condition> getConditions()
    • getActions

      public List<Action> getActions()
    • setMatchAtMost

      @DataBoundSetter public void setMatchAtMost(int matchAtMost)
    • getMatchAtMost

      public int getMatchAtMost()
    • setContinueAfterMatch

      @DataBoundSetter public void setContinueAfterMatch(boolean continueAfterMatch)
    • getContinueAfterMatch

      public boolean getContinueAfterMatch()
    • initialize

      public void initialize(String uniquePerformName)
      Resets local counters and variables before processing conditions and actions.
    • validateConditions

      public boolean validateConditions(Run<?,?> run)
      Checks if passed build matches with all conditions from this rule.
      Parameters:
      run - build to validate
      Returns:
      true if all conditions match otherwise false
    • performActions

      public void performActions(Run<?,?> run) throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException