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

public class BuildResultCondition extends Condition
Matches builds that have expected build results.
Author:
Damian Szczepanik (damianszczepanik@github)
  • Constructor Details

    • BuildResultCondition

      @DataBoundConstructor public BuildResultCondition()
  • Method Details

    • getMatchSuccess

      public boolean getMatchSuccess()
    • setMatchSuccess

      @DataBoundSetter public void setMatchSuccess(boolean matchSuccess)
    • getMatchUnstable

      public boolean getMatchUnstable()
    • setMatchUnstable

      @DataBoundSetter public void setMatchUnstable(boolean matchUnstable)
    • getMatchFailure

      public boolean getMatchFailure()
    • setMatchFailure

      @DataBoundSetter public void setMatchFailure(boolean matchFailure)
    • getMatchAborted

      public boolean getMatchAborted()
    • setMatchAborted

      @DataBoundSetter public void setMatchAborted(boolean matchAborted)
    • getMatchNotBuilt

      public boolean getMatchNotBuilt()
    • setMatchNotBuilt

      @DataBoundSetter public void setMatchNotBuilt(boolean matchNotBuilt)
    • 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