Class BuildStepOperation

java.lang.Object
hudson.plugins.build_timeout.BuildTimeOutOperation
hudson.plugins.build_timeout.operations.BuildStepOperation
All Implemented Interfaces:
ExtensionPoint, Describable<BuildTimeOutOperation>

public class BuildStepOperation extends BuildTimeOutOperation
Timeout Action to perform any specified BuildStep, which includes Builder and Publisher. This does not ensure all BuildStep works correct. Especially, BuildSteps that launch processes on build nodes does not work at all.
  • Constructor Details

    • BuildStepOperation

      @DataBoundConstructor public BuildStepOperation(BuildStep buildstep, boolean continueEvenFailed, boolean createLauncher)
      Parameters:
      buildstep -
      continueEvenFailed -
    • BuildStepOperation

      @Deprecated public BuildStepOperation(BuildStep buildstep, boolean continueEvenFailed)
      Deprecated.
  • Method Details

    • getBuildstep

      public BuildStep getBuildstep()
      Returns:
      build step to perform.
    • isContinueEvenFailed

      public boolean isContinueEvenFailed()
      Returns:
      true to ignore build step failure.
    • isCreateLauncher

      public boolean isCreateLauncher()
      Returns:
      whether to create a launcher for this build step
    • createLauncher

      protected Launcher createLauncher(@NonNull AbstractBuild<?,?> build, @NonNull BuildListener listener)
      Returns:
      launcher specified with launcherOption.
    • perform

      public boolean perform(@NonNull AbstractBuild<?,?> build, @NonNull BuildListener listener, long effectiveTimeout)
      Description copied from class: BuildTimeOutOperation
      Perform operation.
      Specified by:
      perform in class BuildTimeOutOperation
      Parameters:
      build - build timed out
      listener - build listener. can be used to print log.
      effectiveTimeout - timeout (milliseconds)
      Returns:
      false not to run subsequent operations. It also mark the build as failure.