hudson.plugins.build_timeout
Class BuildTimeoutWrapper

java.lang.Object
  extended by hudson.tasks.BuildWrapper
      extended by 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 Class Summary
static class BuildTimeoutWrapper.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
hudson.tasks.BuildWrapper.Environment
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static BuildTimeoutWrapper.DescriptorImpl DESCRIPTOR
           
 boolean failBuild
          Fail the build rather than aborting it
 int timeoutMinutes
          If the build took longer than this amount of minutes, it will be terminated.
 
Constructor Summary
BuildTimeoutWrapper(int timeoutMinutes, boolean failBuild)
           
 
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
 

Field Detail

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

@Extension
public static final BuildTimeoutWrapper.DescriptorImpl DESCRIPTOR
Constructor Detail

BuildTimeoutWrapper

@DataBoundConstructor
public BuildTimeoutWrapper(int timeoutMinutes,
                                                boolean failBuild)
Method Detail

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.