public class SetupDeployer extends Object
| Constructor and Description |
|---|
SetupDeployer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkLabels(hudson.model.Computer c,
SetupConfigItem setupConfigItem)
Returns true if the given setup config item is responsible for the given slave computer.
|
void |
deployToComputer(hudson.model.Computer c,
hudson.FilePath root,
hudson.model.TaskListener listener,
SetupConfig config) |
void |
deployToComputer(hudson.model.Computer c,
hudson.FilePath root,
hudson.model.TaskListener listener,
SetupConfigItem setupConfigItem) |
void |
deployToComputers(List<hudson.model.Computer> computerList,
SetupConfig config) |
void |
deployToComputers(List<hudson.model.Computer> computerList,
SetupConfigItem setupConfigItem) |
void |
executePreLaunchScripts(hudson.model.Computer c,
SetupConfig config,
hudson.model.TaskListener listener) |
void |
executePrepareScripts(hudson.model.Computer c,
SetupConfig config,
hudson.model.TaskListener listener) |
List<hudson.model.Computer> |
getAllActiveSlaves()
Returns a list of all active slaves connected to the master.
|
public List<hudson.model.Computer> getAllActiveSlaves()
public void deployToComputer(hudson.model.Computer c,
hudson.FilePath root,
hudson.model.TaskListener listener,
SetupConfig config)
throws IOException,
InterruptedException
c - the computer to upload th files toroot - the computer's target directorylistener - the listener for logging etc.config - the SetupConfig object containing the all SetupConfigItemsIOExceptionInterruptedExceptionpublic void deployToComputer(hudson.model.Computer c,
hudson.FilePath root,
hudson.model.TaskListener listener,
SetupConfigItem setupConfigItem)
throws IOException,
InterruptedException
c - the computer to upload th files toroot - the computer's target directorylistener - the listener for logging etc.setupConfigItem - the SetupConfigItem object containing the source dir and the command lineIOExceptionInterruptedExceptionpublic boolean checkLabels(hudson.model.Computer c,
SetupConfigItem setupConfigItem)
c - the slave computersetupConfigItem - the setup config item to checkpublic void deployToComputers(List<hudson.model.Computer> computerList, SetupConfigItem setupConfigItem)
computerList - the list of computers to upload the setup files and execute command linesetupConfigItem - the SetupConfigItem objectpublic void deployToComputers(List<hudson.model.Computer> computerList, SetupConfig config)
computerList - the list of computers to upload the setup files and execute command lineconfig - the SetupConfig objectpublic void executePrepareScripts(hudson.model.Computer c,
SetupConfig config,
hudson.model.TaskListener listener)
public void executePreLaunchScripts(hudson.model.Computer c,
SetupConfig config,
hudson.model.TaskListener listener)
throws hudson.AbortException
hudson.AbortExceptionCopyright © 2004-2015. All Rights Reserved.