Class WriteDescriptionOperation

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

public class WriteDescriptionOperation extends BuildTimeOutOperation
Set Description for the build timed out.
  • Constructor Details

    • WriteDescriptionOperation

      @DataBoundConstructor public WriteDescriptionOperation(String description)
  • Method Details

    • getDescription

      public String getDescription()
      Returns:
      description to set.
    • perform

      public boolean perform(AbstractBuild<?,?> build, 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.