Class PrebuildSameAsPerformRunCondition
java.lang.Object
org.jenkins_ci.plugins.run_condition.RunCondition
org.jenkins_ci.plugins.run_condition.common.PrebuildSameAsPerformRunCondition
- All Implemented Interfaces:
ExtensionPoint,Describable<RunCondition>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkins_ci.plugins.run_condition.RunCondition
RunCondition.RunConditionDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanrunBuildStep(AbstractBuild<?, ?> build, BuildListener listener) final booleanrunPerform(AbstractBuild<?, ?> build, BuildListener listener) Decide whether to run the perform method in the BuildStep.final booleanrunPrebuild(AbstractBuild<?, ?> build, BuildListener listener) Decide whether to run the prebuild method in the BuildStep.Methods inherited from class org.jenkins_ci.plugins.run_condition.RunCondition
all, getDescriptor
-
Constructor Details
-
PrebuildSameAsPerformRunCondition
public PrebuildSameAsPerformRunCondition()
-
-
Method Details
-
runPrebuild
Description copied from class:RunConditionDecide whether to run the prebuild method in the BuildStep. If the condition depends, or may depend, on something that may be affected by the build itself, then it is probably safest to always return true here. (@TODO review this once the plugin has been in use for a while with a variety of conditions and BuildSteps) If the condition is not dependent on the state of the build i.e. just looks at the build timestamp, then this method should return the same as the runPerform method.- Specified by:
runPrebuildin classRunCondition- Returns:
- true if the prebuild method of the BuildStep should run
- Throws:
Exception- See Also:
-
runPerform
Description copied from class:RunConditionDecide whether to run the perform method in the BuildStep.- Specified by:
runPerformin classRunCondition- Returns:
- true if the perform method of the BuildStep should run
- Throws:
Exception
-
runBuildStep
protected abstract boolean runBuildStep(AbstractBuild<?, ?> build, BuildListener listener) throws Exception- Throws:
Exception
-