org.jenkinsci.plugins.slave_setup
Class SetupDeployer

java.lang.Object
  extended by 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

Constructor Summary
SetupDeployer()
           
 
Method Summary
 void deployToComputer(hudson.model.Computer c, hudson.FilePath root, hudson.model.TaskListener listener, SetupConfig config)
           
 void deployToComputers(List<hudson.model.Computer> computerList, SetupConfig config)
           
 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

SetupDeployer

public SetupDeployer()
Method Detail

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 to
root - the computer's target directory
listener - the listener for logging etc.
config - the SetupConfig object containing the source dir and the command line
Throws:
IOException
InterruptedException

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 line
config - the SetupConfig object


Copyright © 2004-2012. All Rights Reserved.