org.jvnet.hudson.test
Class HudsonTestCase.TestBuildWrapper

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<BuildWrapper>
      extended by hudson.tasks.BuildWrapper
          extended by org.jvnet.hudson.test.HudsonTestCase.TestBuildWrapper
All Implemented Interfaces:
ExtensionPoint, Describable<BuildWrapper>
Enclosing class:
HudsonTestCase

public static class HudsonTestCase.TestBuildWrapper
extends BuildWrapper


Nested Class Summary
static class HudsonTestCase.TestBuildWrapper.TestBuildWrapperDescriptor
           
 
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 Result buildResultInTearDown
           
 
Constructor Summary
HudsonTestCase.TestBuildWrapper()
           
 
Method Summary
 BuildWrapper.Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener)
          Runs before the Builder runs (but after the checkout has occurred), and performs a set up.
 
Methods inherited from class hudson.tasks.BuildWrapper
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, setUp
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buildResultInTearDown

public Result buildResultInTearDown
Constructor Detail

HudsonTestCase.TestBuildWrapper

public HudsonTestCase.TestBuildWrapper()
Method Detail

setUp

public BuildWrapper.Environment setUp(AbstractBuild build,
                                      Launcher launcher,
                                      BuildListener listener)
                               throws IOException,
                                      InterruptedException
Description copied from class: BuildWrapper
Runs before the Builder runs (but after the checkout has occurred), and performs a set up.

Overrides:
setUp in class BuildWrapper
Parameters:
build - The build in progress for which an BuildWrapper.Environment object is created. Never null.
launcher - This launcher can be used to launch processes for this build. If the build runs remotely, launcher will also run a job on that remote machine. Never null.
listener - Can be used to send any message.
Returns:
non-null if the build can continue, null if there was an error and the build needs to be aborted.
Throws:
IOException - terminates the build abnormally. Hudson will handle the exception and reports a nice error message.
InterruptedException


Copyright © 2004-2013. All Rights Reserved.