|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jenkinsci.plugins.slave_setup.SetupDeployer
public class SetupDeployer
Executes a deployment to all or a single node of the given fileset and executes the command line.
| Constructor Summary | |
|---|---|
SetupDeployer()
|
|
| 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)
|
int |
executePrepareScripts(hudson.model.Computer c,
SetupConfig config,
hudson.model.TaskListener listener)
Returns 0 if all prepare scripts were executes without error. |
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 |
| Constructor Detail |
|---|
public SetupDeployer()
| Method Detail |
|---|
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 SetupConfigItems
IOException
InterruptedException
public 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 line
IOException
InterruptedException
public boolean checkLabels(hudson.model.Computer c,
SetupConfigItem setupConfigItem)
c - the slave computersetupConfigItem - the setup config item to check
public 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 object
public 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 object
public int executePrepareScripts(hudson.model.Computer c,
SetupConfig config,
hudson.model.TaskListener listener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||