jenkins.plugins.clangscanbuild.commands
Interface BuildContext

All Known Implementing Classes:
BuildContextImpl

public interface BuildContext

This interface abstracts the operations which the xcodebuild commands needs in order to execute. This was done so that unit tests could mock this interface and test command building independently of jenkins.

Author:
Josh Kennedy

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.
 

Method Detail

getBuildFolder

hudson.FilePath getBuildFolder()
Returns the FilePath of the current executing build

Returns:

getWorkspace

hudson.FilePath getWorkspace()
Returns workspace location of current executing build


waitForProcess

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. 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.


log

void log(String message)
Logs a message to the build listener.



Copyright © 2004-2012. All Rights Reserved.