org.jvnet.hudson.test
Class SleepBuilder

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by org.jvnet.hudson.test.SleepBuilder
All Implemented Interfaces:
ExtensionPoint, Describable<Builder>, BuildStep

public class SleepBuilder
extends Builder

Builder that just sleeps for the specified amount of milli-seconds.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class SleepBuilder.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
 
Field Summary
static SleepBuilder.DescriptorImpl DESCRIPTOR
           
 long time
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
SleepBuilder(long time)
           
 
Method Summary
 Descriptor<Builder> getDescriptor()
           
 boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Builder
getProjectAction, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, prebuild
 

Field Detail

time

public final long time

DESCRIPTOR

public static final SleepBuilder.DescriptorImpl DESCRIPTOR
Constructor Detail

SleepBuilder

public SleepBuilder(long time)
Method Detail

perform

public boolean perform(AbstractBuild<?,?> build,
                       Launcher launcher,
                       BuildListener listener)
                throws java.lang.InterruptedException,
                       java.io.IOException
Specified by:
perform in interface BuildStep
Overrides:
perform in class BuildStepCompatibilityLayer
Throws:
java.lang.InterruptedException
java.io.IOException

getDescriptor

public Descriptor<Builder> getDescriptor()


Copyright © 2009. All Rights Reserved.