Class NoActivityTimeOutStrategy
java.lang.Object
hudson.plugins.build_timeout.BuildTimeOutStrategy
hudson.plugins.build_timeout.impl.NoActivityTimeOutStrategy
- All Implemented Interfaces:
Describable<BuildTimeOutStrategy>
Timeout when specified time passed since the last output.
-
Nested Class Summary
-
Field Summary
Fields inherited from class hudson.plugins.build_timeout.BuildTimeOutStrategy
LOG, MINUTES
-
Constructor Summary
ConstructorDescriptionNoActivityTimeOutStrategy
(long timeoutSeconds) Deprecated.NoActivityTimeOutStrategy
(String timeoutSecondsString) -
Method Summary
Modifier and TypeMethodDescriptionlong
getTimeOut
(AbstractBuild<?, ?> build, BuildListener listener) Define the delay (in milliseconds) to wait for the build to complete before interrupting.long
Deprecated.void
onWrite
(AbstractBuild<?, ?> build, byte[] b, int length) Called when some output to console.toString()
Methods inherited from class hudson.plugins.build_timeout.BuildTimeOutStrategy
expandAll, getDescriptor, getTimeOut, hasMacros, onWrite, wantsCaptureLog
-
Constructor Details
-
NoActivityTimeOutStrategy
-
NoActivityTimeOutStrategy
Deprecated.
-
-
Method Details
-
getTimeoutSeconds
Deprecated.usegetTimeoutSecondsString()
instead. -
getTimeoutSecondsString
-
getTimeOut
public long getTimeOut(@NonNull AbstractBuild<?, ?> build, @NonNull BuildListener listener) throws InterruptedException, org.jenkinsci.plugins.tokenmacro.MacroEvaluationException, IOExceptionDescription copied from class:BuildTimeOutStrategy
Define the delay (in milliseconds) to wait for the build to complete before interrupting.- Overrides:
getTimeOut
in classBuildTimeOutStrategy
- Parameters:
build
- the buildlistener
- the build listener- Throws:
InterruptedException
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
IOException
-
onWrite
Description copied from class:BuildTimeOutStrategy
Called when some output to console. Override this to capture the activity.- Overrides:
onWrite
in classBuildTimeOutStrategy
- Parameters:
build
-b
- output characters.length
- length of b to output
-
toString
-
getTimeoutSecondsString()
instead.