public abstract class BaseExecutionStep extends BaseStep implements com.xebialabs.deployit.plugin.api.flow.PreviewStep, com.xebialabs.deployit.plugin.api.flow.StageableStep
container, ctx, FREEMARKER_FILE_EXT, logger, remoteConn| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
ArtifactUploader |
createArtifactUploader() |
com.xebialabs.deployit.plugin.api.flow.StepExitCode |
doExecute() |
protected com.xebialabs.deployit.plugin.api.flow.StepExitCode |
executeScript(com.xebialabs.overthere.OverthereFile executable) |
java.io.File |
getArtifact() |
java.util.List<java.lang.String> |
getClasspathResources() |
java.util.List<java.io.File> |
getFileResources() |
com.xebialabs.deployit.plugin.api.flow.Preview |
getPreview() |
java.lang.String |
getScriptPath() |
java.lang.String |
getScriptTemplatePath() |
java.util.List<java.lang.String> |
getTemplateClasspathResources() |
java.lang.String |
getUploadedArtifactPath() |
java.util.Map<java.lang.String,java.lang.Object> |
getVars() |
void |
requestStaging(com.xebialabs.deployit.plugin.api.flow.StagingContext ctx) |
protected java.lang.String |
resolveOsSpecificFileName(java.lang.String template) |
static java.lang.String |
resolveOsSpecificFileName(java.lang.String template,
com.xebialabs.deployit.plugin.overthere.HostContainer hostContainer) |
void |
setArtifact(java.io.File artifact) |
void |
setClasspathResources(java.util.List<java.lang.String> classpathResources) |
void |
setDerivedArtifact(com.xebialabs.deployit.plugin.api.udm.artifact.DerivedArtifact da) |
void |
setFileResources(java.util.List<java.io.File> fileResources) |
void |
setTemplateClasspathResources(java.util.List<java.lang.String> templateClasspathResources) |
protected void |
setWorkingDirectory() |
protected com.xebialabs.overthere.OverthereFile |
uploadArtifactIfPresent() |
protected void |
uploadClasspathResources() |
protected void |
uploadFileOrDirectory(com.xebialabs.overthere.OverthereFile remoteDir,
de.schlichtherle.truezip.file.TFile file,
boolean logFileNameToConsole) |
protected void |
uploadFileResources() |
protected com.xebialabs.overthere.OverthereFile |
uploadScriptToExecute(java.lang.String scriptTemplatePath) |
protected void |
uploadTemplateClasspathResources() |
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, uploadToWorkingDirectorypublic 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)
public void requestStaging(com.xebialabs.deployit.plugin.api.flow.StagingContext ctx)
requestStaging in interface com.xebialabs.deployit.plugin.api.flow.StageableSteppublic com.xebialabs.deployit.plugin.api.flow.StepExitCode doExecute()
throws java.lang.Exception
public com.xebialabs.deployit.plugin.api.flow.Preview getPreview()
getPreview in interface com.xebialabs.deployit.plugin.api.flow.PreviewStepprotected com.xebialabs.overthere.OverthereFile uploadArtifactIfPresent()
protected void uploadFileResources()
protected void uploadClasspathResources()
protected void uploadFileOrDirectory(com.xebialabs.overthere.OverthereFile remoteDir,
de.schlichtherle.truezip.file.TFile file,
boolean logFileNameToConsole)
throws java.io.IOException
java.io.IOExceptionprotected void uploadTemplateClasspathResources()
protected com.xebialabs.overthere.OverthereFile uploadScriptToExecute(java.lang.String scriptTemplatePath)
protected void setWorkingDirectory()
protected com.xebialabs.deployit.plugin.api.flow.StepExitCode executeScript(com.xebialabs.overthere.OverthereFile executable)
public java.lang.String getScriptPath()
public java.util.List<java.io.File> getFileResources()
public void setFileResources(java.util.List<java.io.File> fileResources)
public java.util.List<java.lang.String> getClasspathResources()
public void setClasspathResources(java.util.List<java.lang.String> classpathResources)
public java.util.List<java.lang.String> getTemplateClasspathResources()
public void setTemplateClasspathResources(java.util.List<java.lang.String> templateClasspathResources)
public java.io.File getArtifact()
public void setArtifact(java.io.File artifact)
public void setDerivedArtifact(com.xebialabs.deployit.plugin.api.udm.artifact.DerivedArtifact da)
public java.lang.String getUploadedArtifactPath()
protected java.lang.String resolveOsSpecificFileName(java.lang.String template)
public static java.lang.String resolveOsSpecificFileName(java.lang.String template,
com.xebialabs.deployit.plugin.overthere.HostContainer hostContainer)
public ArtifactUploader createArtifactUploader()
createArtifactUploader in class BaseSteppublic java.lang.String getScriptTemplatePath()
public java.util.Map<java.lang.String,java.lang.Object> getVars()