public class BuildContextImpl extends java.lang.Object implements BuildContext
Constructor and Description |
---|
BuildContextImpl(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
Modifier and Type | Method and Description |
---|---|
hudson.FilePath |
getBuildFolder()
Returns the FilePath of the current executing build
|
hudson.FilePath |
getWorkspace()
Returns workspace location of current executing build
|
void |
log(java.lang.String message)
Logs a message to the build listener.
|
int |
waitForProcess(hudson.FilePath presentWorkingDirectory,
hudson.util.ArgumentListBuilder command)
This method starts a process and will not return control until
either the process is complete or the process is interrupted.
|
int |
waitForProcess(hudson.Launcher.ProcStarter processStarter) |
public BuildContextImpl(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
public hudson.FilePath getWorkspace()
BuildContext
getWorkspace
in interface BuildContext
public int waitForProcess(hudson.Launcher.ProcStarter processStarter)
public void log(java.lang.String message)
BuildContext
log
in interface BuildContext
public hudson.FilePath getBuildFolder()
BuildContext
getBuildFolder
in interface BuildContext
public int waitForProcess(hudson.FilePath presentWorkingDirectory, hudson.util.ArgumentListBuilder command)
BuildContext
waitForProcess
in interface BuildContext