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
Nested Classes -
Field Summary
Fields inherited from class hudson.plugins.build_timeout.BuildTimeOutStrategy
LOG, MINUTES -
Constructor Summary
ConstructorsConstructorDescriptionNoActivityTimeOutStrategy(long timeoutSeconds) Deprecated.NoActivityTimeOutStrategy(String timeoutSecondsString) -
Method Summary
Modifier and TypeMethodDescriptionlonggetTimeOut(AbstractBuild<?, ?> build, BuildListener listener) Define the delay (in milliseconds) to wait for the build to complete before interrupting.longDeprecated.voidonWrite(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:BuildTimeOutStrategyDefine the delay (in milliseconds) to wait for the build to complete before interrupting.- Overrides:
getTimeOutin classBuildTimeOutStrategy- Parameters:
build- the buildlistener- the build listener- Throws:
InterruptedExceptionorg.jenkinsci.plugins.tokenmacro.MacroEvaluationExceptionIOException
-
onWrite
Description copied from class:BuildTimeOutStrategyCalled when some output to console. Override this to capture the activity.- Overrides:
onWritein classBuildTimeOutStrategy- Parameters:
build-b- output characters.length- length of b to output
-
toString
-
getTimeoutSecondsString()instead.