Class AlwaysPrebuildRunCondition

java.lang.Object
org.jenkins_ci.plugins.run_condition.RunCondition
org.jenkins_ci.plugins.run_condition.common.AlwaysPrebuildRunCondition
All Implemented Interfaces:
ExtensionPoint, Describable<RunCondition>
Direct Known Subclasses:
BooleanCondition, CauseCondition, CommandInterperterCondition, ExpressionCondition, FileExistsCondition, FilesMatchCondition, NodeCondition, NumericalComparisonCondition, StatusCondition, StringsMatchCondition, VariableExistsCondition

public abstract class AlwaysPrebuildRunCondition extends RunCondition
  • Constructor Details

    • AlwaysPrebuildRunCondition

      public AlwaysPrebuildRunCondition()
  • Method Details

    • runPrebuild

      public final boolean runPrebuild(AbstractBuild<?,?> build, BuildListener listener) throws Exception
      Description copied from class: RunCondition
      Decide 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:
      runPrebuild in class RunCondition
      Returns:
      true if the prebuild method of the BuildStep should run
      Throws:
      Exception
      See Also: