jenkins.plugins.clangscanbuild.commands
Class BuildContextImpl

java.lang.Object
  extended by jenkins.plugins.clangscanbuild.commands.BuildContextImpl
All Implemented Interfaces:
BuildContext

public class BuildContextImpl
extends Object
implements BuildContext


Constructor Summary
BuildContextImpl(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
Method Summary
 hudson.FilePath getBuildFolder()
          Returns the FilePath of the current executing build
 hudson.FilePath getWorkspace()
          Returns workspace location of current executing build
 void log(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildContextImpl

public BuildContextImpl(hudson.model.AbstractBuild build,
                        hudson.Launcher launcher,
                        hudson.model.BuildListener listener)
Method Detail

getWorkspace

public hudson.FilePath getWorkspace()
Description copied from interface: BuildContext
Returns workspace location of current executing build

Specified by:
getWorkspace in interface BuildContext

waitForProcess

public int waitForProcess(hudson.Launcher.ProcStarter processStarter)

log

public void log(String message)
Description copied from interface: BuildContext
Logs a message to the build listener.

Specified by:
log in interface BuildContext

getBuildFolder

public hudson.FilePath getBuildFolder()
Description copied from interface: BuildContext
Returns the FilePath of the current executing build

Specified by:
getBuildFolder in interface BuildContext
Returns:

waitForProcess

public int waitForProcess(hudson.FilePath presentWorkingDirectory,
                          hudson.util.ArgumentListBuilder command)
Description copied from interface: BuildContext
This method starts a process and will not return control until either the process is complete or the process is interrupted. Caught exceptions (IOException,InterrupredException) are logged to the build listener and a return code of 1 will be returned. Upon success, a return code of 0 is returned.

Specified by:
waitForProcess in interface BuildContext


Copyright © 2004-2011. All Rights Reserved.