java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.model.BuildCondition
All Implemented Interfaces:
ExtensionPoint, Serializable

public abstract class BuildCondition extends Object implements Serializable, ExtensionPoint
Extension point for build conditions.
Author:
Andrew Bayer
See Also:
  • Constructor Details

    • BuildCondition

      public BuildCondition()
  • Method Details

    • meetsCondition

      @Deprecated public boolean meetsCondition(@NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun r)
      Deprecated.
    • meetsCondition

      public boolean meetsCondition(@NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun r, Object context, Throwable error)
    • meetsCondition

      @Deprecated public boolean meetsCondition(@NonNull Object runWrapperObj)
      Deprecated.
    • meetsCondition

      public boolean meetsCondition(@NonNull Object runWrapperObj, Object context, Throwable error)
    • combineResults

      @Deprecated @NonNull protected final Result combineResults(@NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Deprecated.
    • combineResults

      @Deprecated @NonNull protected final Result combineResults(@NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run, @CheckForNull Throwable error)
      Deprecated.
    • combineResults

      @NonNull protected final Result combineResults(@NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run, @CheckForNull Throwable error, @CheckForNull Object context)
    • getExecutionResult

      @CheckForNull protected Result getExecutionResult(@NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun r)
    • getDescription

      public abstract String getDescription()
    • all

      public static ExtensionList<BuildCondition> all()
      All the registered BuildConditions.
      Returns:
      A list of all registered BuildConditions.
    • getOrderedConditionNames

      public static List<String> getOrderedConditionNames()
    • getConditionMethods

      public static Map<String,BuildCondition> getConditionMethods()
    • getCombinedResult

      @Deprecated @NonNull public static Result getCombinedResult(@NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run, @CheckForNull Throwable error)
      Deprecated.
    • getCombinedResult

      @NonNull public static Result getCombinedResult(@NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run, @CheckForNull Throwable error, @CheckForNull Object context)
    • getFlowExecutionResult

      @CheckForNull public static Result getFlowExecutionResult(@NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun r)