Class BetterThanOrEqualBuildResult

All Implemented Interfaces:
ExtensionPoint, Describable<ConditionalResult>

public class BetterThanOrEqualBuildResult extends ConditionalResult
if run result better than or equal to selected
Since:
1.19.0
Author:
lanwen (Merkushev Kirill)
  • Constructor Details

    • BetterThanOrEqualBuildResult

      @DataBoundConstructor public BetterThanOrEqualBuildResult()
  • Method Details

    • setResult

      @DataBoundSetter public void setResult(String result)
    • getResult

      public String getResult()
    • matches

      public boolean matches(@NonNull Run<?,?> run)
      Description copied from class: ConditionalResult
      If matches, will be used to set state
      Specified by:
      matches in class ConditionalResult
      Parameters:
      run - to check against
      Returns:
      matches if run result better than or equal to selected
    • betterThanOrEqualTo

      public static BetterThanOrEqualBuildResult betterThanOrEqualTo(Result result, org.kohsuke.github.GHCommitState state, String msg)
      Convenient way to reuse logic of checking for the build status
      Parameters:
      result - to check against
      state - state to set
      msg - message to set. Can contain env vars
      Returns:
      new instance of this conditional result