com.xebialabs.deployit.plugin.generic.step
Class BaseExecutionStep
java.lang.Object
com.xebialabs.deployit.plugin.generic.step.BaseStep
com.xebialabs.deployit.plugin.generic.step.BaseExecutionStep
- All Implemented Interfaces:
- com.xebialabs.deployit.plugin.api.flow.PreviewStep, com.xebialabs.deployit.plugin.api.flow.Step, java.io.Serializable
- Direct Known Subclasses:
- InspectScriptExecutionStep, ScriptExecutionStep
public abstract class BaseExecutionStep
- extends BaseStep
- implements com.xebialabs.deployit.plugin.api.flow.PreviewStep
- See Also:
- Serialized Form
| Fields inherited from interface com.xebialabs.deployit.plugin.api.flow.Step |
DEFAULT_ORDER |
|
Constructor Summary |
BaseExecutionStep(java.lang.String scriptPath,
com.xebialabs.deployit.plugin.overthere.HostContainer container,
java.util.Map<java.lang.String,java.lang.Object> vars,
java.lang.String description)
|
| Methods inherited from class com.xebialabs.deployit.plugin.generic.step.BaseStep |
classpathResourceExists, createOrReplaceHostFile, disconnect, evaluateTemplate, evaluateTemplate, evaluateTemplate, getContainer, getCtx, getDescription, getHostFileSeparator, getHostLineSeparator, getLocalConnection, getRemoteConnection, getRemoteWorkingDirectory, getRemoteWorkingDirPath, handleExecute, hostFileExists, isRetainRemoteWorkingDirOnCompletion, readHostFile, readHostFileLines, readHostXmlFileAsModel, resolveOsSpecificTemplate, setRemoteWorkingDirPath, setRetainRemoteWorkingDirOnCompletion, substringAfterLast, substringAfterLast, uploadToWorkingDirectory, uploadToWorkingDirectory, uploadToWorkingDirectory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.xebialabs.deployit.plugin.api.flow.Step |
execute, getDescription, getOrder |
BaseExecutionStep
public BaseExecutionStep(java.lang.String scriptPath,
com.xebialabs.deployit.plugin.overthere.HostContainer container,
java.util.Map<java.lang.String,java.lang.Object> vars,
java.lang.String description)
doExecute
public com.xebialabs.deployit.plugin.api.flow.StepExitCode doExecute()
throws java.lang.Exception
- Specified by:
doExecute in class BaseStep
- Throws:
java.lang.Exception
getPreview
public com.xebialabs.deployit.plugin.api.flow.Preview getPreview()
- Specified by:
getPreview in interface com.xebialabs.deployit.plugin.api.flow.PreviewStep
uploadArtifactIfPresent
protected com.xebialabs.overthere.OverthereFile uploadArtifactIfPresent()
uploadFileResources
protected void uploadFileResources()
uploadClasspathResources
protected void uploadClasspathResources()
uploadTemplateClasspathResources
protected void uploadTemplateClasspathResources()
uploadScriptToExecute
protected com.xebialabs.overthere.OverthereFile uploadScriptToExecute(java.lang.String scriptTemplatePath)
setWorkingDirectory
protected void setWorkingDirectory()
executeScript
protected com.xebialabs.deployit.plugin.api.flow.StepExitCode executeScript(com.xebialabs.overthere.OverthereFile executable)
getFileResources
public java.util.List<java.io.File> getFileResources()
setFileResources
public void setFileResources(java.util.List<java.io.File> fileResources)
getClasspathResources
public java.util.List<java.lang.String> getClasspathResources()
setClasspathResources
public void setClasspathResources(java.util.List<java.lang.String> classpathResources)
getTemplateClasspathResources
public java.util.List<java.lang.String> getTemplateClasspathResources()
setTemplateClasspathResources
public void setTemplateClasspathResources(java.util.List<java.lang.String> templateClasspathResources)
getArtifact
public java.io.File getArtifact()
setArtifact
public void setArtifact(java.io.File artifact)
getUploadedArtifactPath
public java.lang.String getUploadedArtifactPath()
resolveOsSpecificFileName
protected java.lang.String resolveOsSpecificFileName(java.lang.String template)