Class RunCondition

java.lang.Object
org.jenkins_ci.plugins.run_condition.RunCondition
All Implemented Interfaces:
ExtensionPoint, Describable<RunCondition>
Direct Known Subclasses:
AlwaysPrebuildRunCondition, And, DayCondition, Not, Or, PrebuildSameAsPerformRunCondition, TimeCondition

public abstract class RunCondition extends Object implements Describable<RunCondition>, ExtensionPoint
Define a condition that can be used to decide whether to run a BuildStep or not. A Run condition should not make any changes to the build or the build environment. If the information that is required to make the decision is not available, then the RunCondition should either explicitly throw an exception (or just allow one to be thrown) rather than handling it and trying to decide whether the build should run based on bad data. This allows a user to choose what should happen - which could be different in different contexts.