Package hudson.plugins.build_timeout
Class BuildTimeOutOperation
java.lang.Object
hudson.plugins.build_timeout.BuildTimeOutOperation
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildTimeOutOperation>
- Direct Known Subclasses:
AbortAndRestartOperation
,AbortOperation
,BuildStepOperation
,FailOperation
,WriteDescriptionOperation
public abstract class BuildTimeOutOperation
extends Object
implements ExtensionPoint, Describable<BuildTimeOutOperation>
Defines an operation performed when timeout occurs.
They are called "Timeout Actions", but the class is BuildTimeOutOperation
not to be confused with
Action
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
perform
(AbstractBuild<?, ?> build, BuildListener listener, long effectiveTimeout) Perform operation.
-
Constructor Details
-
BuildTimeOutOperation
public BuildTimeOutOperation()
-
-
Method Details
-
perform
public abstract boolean perform(@NonNull AbstractBuild<?, ?> build, @NonNull BuildListener listener, long effectiveTimeout) Perform operation.- Parameters:
build
- build timed outlistener
- 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.
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<BuildTimeOutOperation>
- See Also:
-