public abstract class BuildWrapper.Environment extends Environment
BuildWrapper.setUp(Build,Launcher,BuildListener).
It is expected that the subclasses of BuildWrapper extends this
class and implements its own semantics.
| Constructor and Description |
|---|
Environment() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
tearDown(AbstractBuild build,
BuildListener listener)
Runs after the
Builder completes, and performs a tear down. |
boolean |
tearDown(Build build,
BuildListener listener)
Deprecated.
since 2007-10-28.
Use
tearDown(AbstractBuild, BuildListener) instead. |
buildEnvVars, createpublic boolean tearDown(AbstractBuild build, BuildListener listener) throws IOException, InterruptedException
Builder completes, and performs a tear down.
This method is invoked even when the build failed, so that the
clean up operation can be performed regardless of the build result
(for example, you'll want to stop application server even if a build
fails.) Run.getResult() in this case will return Result.FAILURE
(since 1.339), and a null result indicates SUCCESS-so-far (post-build
actions may still affect the final result).
tearDown in class Environmentbuild - The same Build object given to the set up method.listener - The same BuildListener object given to the set up method.IOException - terminates the build abnormally. Hudson will handle the exception
and reports a nice error message.InterruptedException@Deprecated public boolean tearDown(Build build, BuildListener listener) throws IOException, InterruptedException
tearDown(AbstractBuild, BuildListener) instead.IOExceptionInterruptedExceptionCopyright © 2019. All rights reserved.