Class LikelyStuckTimeOutStrategy
java.lang.Object
hudson.plugins.build_timeout.BuildTimeOutStrategy
hudson.plugins.build_timeout.impl.LikelyStuckTimeOutStrategy
- All Implemented Interfaces:
Describable<BuildTimeOutStrategy>
Get the time considered it stuck.
Return 10 times as much as eta if eta is available, else 24 hours.
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class hudson.plugins.build_timeout.BuildTimeOutStrategy
LOG, MINUTES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getTimeOut
(AbstractBuild<?, ?> run, BuildListener listener) Define the delay (in milliseconds) to wait for the build to complete before interrupting.toString()
Methods inherited from class hudson.plugins.build_timeout.BuildTimeOutStrategy
expandAll, getTimeOut, hasMacros, onWrite, onWrite, wantsCaptureLog
-
Field Details
-
DESCRIPTOR
-
-
Constructor Details
-
LikelyStuckTimeOutStrategy
@DataBoundConstructor public LikelyStuckTimeOutStrategy()
-
-
Method Details
-
getTimeOut
public long getTimeOut(@NonNull AbstractBuild<?, ?> run, @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:
run
- the buildlistener
- the build listener- Throws:
InterruptedException
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
IOException
-
toString
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<BuildTimeOutStrategy>
- Overrides:
getDescriptor
in classBuildTimeOutStrategy
- Returns:
- See Also:
-