org.jenkinsci.plugins.slave_setup
Class SetupDeployer
java.lang.Object
org.jenkinsci.plugins.slave_setup.SetupDeployer
public class SetupDeployer
- extends Object
Executes a deployment to all or a single node of the given fileset and executes the command line.
- Author:
- Frederik Fromm
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetupDeployer
public SetupDeployer()
getAllActiveSlaves
public List<hudson.model.Computer> getAllActiveSlaves()
- Returns a list of all active slaves connected to the master.
- Returns:
- a list of all active slaves connected to the master
deployToComputer
public void deployToComputer(hudson.model.Computer c,
hudson.FilePath root,
hudson.model.TaskListener listener,
SetupConfig config)
throws IOException,
InterruptedException
- Parameters:
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 SetupConfigItems
- Throws:
IOException
InterruptedException
deployToComputer
public void deployToComputer(hudson.model.Computer c,
hudson.FilePath root,
hudson.model.TaskListener listener,
SetupConfigItem setupConfigItem)
throws IOException,
InterruptedException
- Parameters:
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 line
- Throws:
IOException
InterruptedException
checkLabels
public boolean checkLabels(hudson.model.Computer c,
SetupConfigItem setupConfigItem)
- Returns true if the given setup config item is responsible for the given slave computer.
- Parameters:
c - the slave computersetupConfigItem - the setup config item to check
- Returns:
- true if the given setup config item is responsible for the given slave computer
deployToComputers
public void deployToComputers(List<hudson.model.Computer> computerList,
SetupConfigItem setupConfigItem)
- Parameters:
computerList - the list of computers to upload the setup files and execute command linesetupConfigItem - the SetupConfigItem object
deployToComputers
public void deployToComputers(List<hudson.model.Computer> computerList,
SetupConfig config)
- Parameters:
computerList - the list of computers to upload the setup files and execute command lineconfig - the SetupConfig object
executePrepareScripts
public void executePrepareScripts(hudson.model.Computer c,
SetupConfig config,
hudson.model.TaskListener listener)
executePreLaunchScripts
public void executePreLaunchScripts(hudson.model.Computer c,
SetupConfig config,
hudson.model.TaskListener listener)
throws hudson.AbortException
- Throws:
hudson.AbortException
Copyright © 2004-2014. All Rights Reserved.