Package hudson.plugins.build_timeout
Class BuildTimeoutWrapper
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildWrapper>
hudson.tasks.BuildWrapper
hudson.plugins.build_timeout.BuildTimeoutWrapper
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildWrapper>
BuildWrapper
that terminates a build if it's taking too long.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
class
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BuildTimeoutWrapper.DescriptorImpl
boolean
Deprecated.static long
int
int
boolean
Deprecated.useWriteDescriptionOperation
instead. -
Constructor Summary
ConstructorDescriptionBuildTimeoutWrapper
(BuildTimeOutStrategy strategy, boolean failBuild, boolean writingDescription) Deprecated.BuildTimeoutWrapper
(BuildTimeOutStrategy strategy, List<BuildTimeOutOperation> operationList) Deprecated.BuildTimeoutWrapper
(BuildTimeOutStrategy strategy, List<BuildTimeOutOperation> operationList, String timeoutEnvVar) ctor. -
Method Summary
Modifier and TypeMethodDescriptiondecorateLogger
(AbstractBuild build, OutputStream logger) protected Object
setUp
(AbstractBuild build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.tasks.BuildWrapper
all, decorateLauncher, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, setUp
-
Field Details
-
MINIMUM_TIMEOUT_MILLISECONDS
public static long MINIMUM_TIMEOUT_MILLISECONDS -
failBuild
Deprecated.useFailOperation
instead.Fail the build rather than aborting it -
writingDescription
Deprecated.useWriteDescriptionOperation
instead.Writing the build description when timeout occurred. -
DESCRIPTOR
-
timeoutMinutes
public transient int timeoutMinutes -
timeoutPercentage
public transient int timeoutPercentage -
timeoutType
-
timeoutMinutesElasticDefault
-
-
Constructor Details
-
BuildTimeoutWrapper
@Deprecated public BuildTimeoutWrapper(BuildTimeOutStrategy strategy, boolean failBuild, boolean writingDescription) Deprecated. -
BuildTimeoutWrapper
@Deprecated public BuildTimeoutWrapper(BuildTimeOutStrategy strategy, List<BuildTimeOutOperation> operationList) Deprecated. -
BuildTimeoutWrapper
@DataBoundConstructor public BuildTimeoutWrapper(BuildTimeOutStrategy strategy, List<BuildTimeOutOperation> operationList, String timeoutEnvVar) ctor. Don't forget to updateBuildTimeoutWrapper.DescriptorImpl.newInstance(StaplerRequest, JSONObject)
when you add new arguments.
-
-
Method Details
-
getOperationList
- Returns:
- operations to perform at timeout.
-
setUp
public BuildWrapper.Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException - Overrides:
setUp
in classBuildWrapper
- Throws:
IOException
InterruptedException
-
readResolve
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<BuildWrapper>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<BuildWrapper>
-
getStrategy
-
getTimeoutEnvVar
-
decorateLogger
public OutputStream decorateLogger(AbstractBuild build, OutputStream logger) throws IOException, InterruptedException, Run.RunnerAbortedException - Overrides:
decorateLogger
in classBuildWrapper
- Throws:
IOException
InterruptedException
Run.RunnerAbortedException
-
FailOperation
instead.