public class SetupConfigItem extends AbstractDescribableImpl<SetupConfigItem>
Modifier and Type | Class and Description |
---|---|
static class |
SetupConfigItem.SetupConfigItemDescriptor |
Constructor and Description |
---|
SetupConfigItem()
Default constructor
|
SetupConfigItem(String prepareScript,
File filesDir,
String commandLine,
boolean deployNow,
String assignedLabelString)
Constructor uesd to create the setup config instance
|
Modifier and Type | Method and Description |
---|---|
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.
|
int |
hashCode()
Every ConfigItem have a unique identifier for content which will match with slave hashCode
|
boolean |
isPrepareScriptExecuted()
Returns the prepare script executed status.
|
String |
remoteCache()
Useful function to get same name as needs to be under slave cache.
|
void |
setAssignedLabelString(String assignedLabelString)
sets the assigned slave's 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
|
void |
setPrepareScriptExecuted(boolean prepareScriptExecuted)
sets the prepare script executed status.
|
getDescriptor
public static final String DELIMITER
@DataBoundConstructor public SetupConfigItem(String prepareScript, File filesDir, String commandLine, boolean deployNow, String assignedLabelString)
public SetupConfigItem()
public String getPrepareScript()
public void setPrepareScript(String prepareScript)
prepareScript
- the script code as stringpublic File getFilesDir()
public String getCommandLine()
public boolean getDeployNow()
public void setFilesDir(File filesDir)
filesDir
- firectory to copy the setup files and sub directories from.public void setCommandLine(String commandLine)
commandLine
- the command line codepublic void setDeployNow(boolean deployNow)
deployNow
- the deploy flagpublic boolean isPrepareScriptExecuted()
public void setPrepareScriptExecuted(boolean prepareScriptExecuted)
prepareScriptExecuted
- the prepare script executed statuspublic String getAssignedLabelString()
public void setAssignedLabelString(String assignedLabelString)
assignedLabelString
- labels to be assigned to the agentpublic int hashCode()
public String remoteCache()
Copyright © 2016–2023. All rights reserved.