public abstract static class SimpleBuildWrapper.Disposer extends Object implements Serializable
Constructor and Description |
---|
Disposer() |
Modifier and Type | Method and Description |
---|---|
boolean |
requiresWorkspace()
Determines whether or not this end-of-wrapped-block callback requires a workspace context (working
directory and launcher).
|
void |
tearDown(Run<?,?> build,
FilePath workspace,
Launcher launcher,
TaskListener listener)
Attempt to clean up anything that was done in the initial setup.
|
void |
tearDown(Run<?,?> build,
TaskListener listener)
Attempt to clean up anything that was done in the initial setup.
|
@Restricted(value=org.kohsuke.accmod.restrictions.Beta.class) public final boolean requiresWorkspace()
When such a context is required (the default), then tearDown(Run, FilePath, Launcher, TaskListener)
applies.
Otherwise, tearDown(Run, TaskListener)
applies.
true
when this end-of-wrapped-block callback requires a workspace context; false
otherwise.public void tearDown(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
This method must be overridden when this end-of-wrapped-block callback requires a workspace
context. If such a context is not required, it does not need to be overridden; it will then forward
to tearDown(Run, TaskListener)
.
build
- a build being runworkspace
- a workspace of the buildlauncher
- a way to start commandslistener
- a way to report progressAbstractMethodError
- if this end-of-wrapped-block callback requires a workspace and this method is not overridden.IOException
- if something fails; AbortException
for user errorsInterruptedException
- if tear down is interruptedpublic void tearDown(Run<?,?> build, TaskListener listener) throws IOException, InterruptedException
This method must be overridden when this end-of-wrapped-block callback does not require a workspace context, and will not be called when such a context is required.
build
- a build being runlistener
- a way to report progressAbstractMethodError
- if this this method is not overriddenIllegalStateException
- if this end-of-wrapped-block callback requires a workspaceIOException
- if something fails; AbortException
for user errorsInterruptedException
- if tear down is interruptedCopyright © 2004–2021. All rights reserved.