hudson.plugins.build_timeout
Class BuildTimeoutWrapper
java.lang.Object
hudson.tasks.BuildWrapper
hudson.plugins.build_timeout.BuildTimeoutWrapper
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.BuildWrapper>
public class BuildTimeoutWrapper
- extends hudson.tasks.BuildWrapper
BuildWrapper that terminates a build if it's taking too long.
- Author:
- Kohsuke Kawaguchi
| Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper |
hudson.tasks.BuildWrapper.Environment |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Method Summary |
hudson.model.Descriptor<hudson.tasks.BuildWrapper> |
getDescriptor()
|
hudson.tasks.BuildWrapper.Environment |
setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
|
| Methods inherited from class hudson.tasks.BuildWrapper |
all, decorateLauncher, getProjectAction, setUp |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timeoutMinutes
public int timeoutMinutes
- If the build took longer than this amount of minutes,
it will be terminated.
failBuild
public boolean failBuild
- Fail the build rather than aborting it
DESCRIPTOR
public static final BuildTimeoutWrapper.DescriptorImpl DESCRIPTOR
BuildTimeoutWrapper
@DataBoundConstructor
public BuildTimeoutWrapper(int timeoutMinutes,
boolean failBuild)
setUp
public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.io.IOException,
java.lang.InterruptedException
- Overrides:
setUp in class hudson.tasks.BuildWrapper
- Throws:
java.io.IOException
java.lang.InterruptedException
getDescriptor
public hudson.model.Descriptor<hudson.tasks.BuildWrapper> getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.BuildWrapper>- Overrides:
getDescriptor in class hudson.tasks.BuildWrapper
Copyright © 2009. All Rights Reserved.