public class PackerPublisher
extends hudson.tasks.Recorder
| Modifier and Type | Class and Description |
|---|---|
static class |
PackerPublisher.DescriptorImpl |
hudson.tasks.Publisher.DescriptorExtensionListImpl| Modifier and Type | Field and Description |
|---|---|
static String |
TEMPLATE_MODE |
| Constructor and Description |
|---|
PackerPublisher(String name,
String jsonTemplate,
String jsonTemplateText,
String packerHome,
String params,
List<PackerFileEntry> fileEntries,
boolean useDebug,
String changeDir) |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
addParamsAsArgs(String params) |
protected static String |
convertException(Exception ex) |
String |
createJsonTemplateTextTempFile(hudson.FilePath workspacePath) |
static String |
createJsonTemplateTextTempFile(hudson.FilePath workspacePath,
String contents) |
String |
createTempFileEntries(hudson.FilePath workspacePath)
Create the temporary files from the configured entries.
|
String |
getChangeDir() |
PackerPublisher.DescriptorImpl |
getDescriptor() |
List<PackerFileEntry> |
getFileEntries() |
String |
getGlobalTemplate() |
PackerInstallation |
getInstallation() |
String |
getJsonTemplate() |
String |
getJsonTemplateText() |
String |
getName() |
String |
getPackerHome() |
String |
getParams() |
String |
getRemotePackerExec(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
hudson.FilePath |
getRemotePath(hudson.model.AbstractBuild build,
String remotePath) |
String |
getRemoteTemplate(hudson.model.AbstractBuild build,
String remotePath) |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
String |
getTemplateMode() |
boolean |
getUseDebug() |
static boolean |
isFilePathUnix(hudson.FilePath path) |
boolean |
isFileTemplate() |
boolean |
isGlobalTemplate() |
boolean |
isGlobalTemplateChecked() |
boolean |
isTextTemplate() |
boolean |
perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
void |
setFileEntries(List<PackerFileEntry> fileEntries) |
void |
setJsonTemplate(String jsonTemplate) |
void |
setJsonTemplateText(String jsonTemplateText) |
void |
setPackerHome(String packerHome) |
void |
setParams(String params) |
void |
setTemplateMode(String templateMode) |
protected hudson.FilePath |
workingDir(hudson.model.AbstractBuild build,
hudson.EnvVars env) |
all, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, prebuildpublic static final String TEMPLATE_MODE
public String getName()
public String getPackerHome()
public void setPackerHome(String packerHome)
public List<PackerFileEntry> getFileEntries()
public void setFileEntries(List<PackerFileEntry> fileEntries)
public String getJsonTemplate()
public void setJsonTemplate(String jsonTemplate)
public String getJsonTemplateText()
public void setJsonTemplateText(String jsonTemplateText)
public String getGlobalTemplate()
public static String createJsonTemplateTextTempFile(hudson.FilePath workspacePath, String contents) throws hudson.AbortException
hudson.AbortExceptionpublic String createJsonTemplateTextTempFile(hudson.FilePath workspacePath) throws hudson.AbortException
hudson.AbortExceptionpublic String getTemplateMode()
public void setTemplateMode(String templateMode)
public String getParams()
public void setParams(String params)
public boolean getUseDebug()
public String getChangeDir()
public boolean isFileTemplate()
public boolean isTextTemplate()
public boolean isGlobalTemplate()
public boolean isGlobalTemplateChecked()
public PackerInstallation getInstallation()
public String getRemotePackerExec(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.TaskListener listener) throws hudson.AbortException
hudson.AbortExceptionpublic String getRemoteTemplate(hudson.model.AbstractBuild build, String remotePath)
public hudson.FilePath getRemotePath(hudson.model.AbstractBuild build,
String remotePath)
public String createTempFileEntries(hudson.FilePath workspacePath) throws hudson.AbortException
hudson.AbortExceptionpublic boolean perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerprotected hudson.FilePath workingDir(hudson.model.AbstractBuild build,
hudson.EnvVars env)
public static boolean isFilePathUnix(hudson.FilePath path)
public PackerPublisher.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Recorderpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
Copyright © 2004-2015. All Rights Reserved.