public class NodeStalkerBuildWrapper
extends hudson.tasks.BuildWrapper
Modifier and Type | Class and Description |
---|---|
static class |
NodeStalkerBuildWrapper.DescriptorImpl |
Modifier and Type | Field and Description |
---|---|
static NodeStalkerBuildWrapper.DescriptorImpl |
DESCRIPTOR |
static String |
JOB_DOES_NOT_EXIST_PATTERN |
static String |
PLUGIN_DISPLAY_NAME |
Constructor and Description |
---|
NodeStalkerBuildWrapper(String job,
boolean shareWorkspace) |
Modifier and Type | Method and Description |
---|---|
String |
getJob() |
String |
getOldCustomWorkspace() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
boolean |
isShareWorkspace() |
void |
setJob(String job) |
void |
setOldCustomWorkspace(String oldCustomWorkspace) |
void |
setShareWorkspace(boolean shareWorkspace) |
hudson.tasks.BuildWrapper.Environment |
setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Runs before the
Builder runs (but after the checkout has occurred), and performs a set up. |
public static final String PLUGIN_DISPLAY_NAME
public static final String JOB_DOES_NOT_EXIST_PATTERN
@Extension public static final NodeStalkerBuildWrapper.DescriptorImpl DESCRIPTOR
@DataBoundConstructor public NodeStalkerBuildWrapper(String job, boolean shareWorkspace)
job
- The job that will be followedshareWorkspace
- boolean to tell if Share Workspace is enabledpublic String getJob()
public String getOldCustomWorkspace()
public void setOldCustomWorkspace(String oldCustomWorkspace)
public void setJob(String job)
public boolean isShareWorkspace()
public void setShareWorkspace(boolean shareWorkspace)
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
BuildStep.getRequiredMonitorService()
public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws IOException, InterruptedException
Builder
runs (but after the checkout has occurred), and performs a set up.setUp
in class hudson.tasks.BuildWrapper
build
- The build in progress for which an 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.IOException
- terminates the build abnormally. Hudson will handle the exception
and reports a nice error message.InterruptedException
Copyright © 2004-2015. All Rights Reserved.