org.jenkinsci.plugins.slave_setup
Class SetupConfigItem

java.lang.Object
  extended by org.jenkinsci.plugins.slave_setup.SetupConfigItem

public class SetupConfigItem
extends Object

Represents a setup config for one set of labels. It may have its own prepare script, files to copy and command line.


Constructor Summary
SetupConfigItem()
          Default constructor
SetupConfigItem(String prepareScript, File filesDir, String commandLine, boolean deployNow, String assignedLabelString)
          Constructor uesd to create the setup config instance
 
Method Summary
 String getAssignedLabelString()
          Gets the textual representation of the assigned label as it was entered by the user.
 String getCommandLine()
          Returns the command line code.
 boolean getDeployNow()
          Returns true if the setup config should be deployed on save of the jenkins config page.
 File getFilesDir()
          Returns the directory containing the setup relevant files and sub directories
 String getPrepareScript()
          Returns the prepare script code.
 void setAssignedLabelString(String assignedLabelString)
          sets the assigned slaves' labels
 void setCommandLine(String commandLine)
          sets the command line code.
 void setDeployNow(boolean deployNow)
          sets the deploy flag.
 void setFilesDir(File filesDir)
          Sets the files dir.
 void setPrepareScript(String prepareScript)
          Sets the prepare script code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetupConfigItem

@DataBoundConstructor
public SetupConfigItem(String prepareScript,
                                            File filesDir,
                                            String commandLine,
                                            boolean deployNow,
                                            String assignedLabelString)
Constructor uesd to create the setup config instance

Parameters:
prepareScript -
filesDir -
commandLine -
deployNow -
assignedLabelString -

SetupConfigItem

public SetupConfigItem()
Default constructor

Method Detail

getPrepareScript

public String getPrepareScript()
Returns the prepare script code.

Returns:
the prepare script code

setPrepareScript

public void setPrepareScript(String prepareScript)
Sets the prepare script code

Parameters:
prepareScript -

getFilesDir

public File getFilesDir()
Returns the directory containing the setup relevant files and sub directories

Returns:

getCommandLine

public String getCommandLine()
Returns the command line code.

Returns:
the command line code

getDeployNow

public boolean getDeployNow()
Returns true if the setup config should be deployed on save of the jenkins config page.

Returns:
true if the setup config should be deployed on save of the jenkins config page

setFilesDir

public void setFilesDir(File filesDir)
Sets the files dir.

Parameters:
filesDir - firectory to copy the setup files and sub directories from.

setCommandLine

public void setCommandLine(String commandLine)
sets the command line code.

Parameters:
commandLine - the command line code

setDeployNow

public void setDeployNow(boolean deployNow)
sets the deploy flag.

Parameters:
deployNow - the deploy flag

getAssignedLabelString

public String getAssignedLabelString()
Gets the textual representation of the assigned label as it was entered by the user.


setAssignedLabelString

public void setAssignedLabelString(String assignedLabelString)
sets the assigned slaves' labels

Parameters:
assignedLabelString -


Copyright © 2004-2012. All Rights Reserved.