public class ElectricFlowPublishApplication
extends hudson.tasks.Publisher
Builder.
When the user configures the project and enables this builder, Descriptor.newInstance(StaplerRequest) is invoked and a new ElectricFlowPublishApplication is created. The created instance is persisted
to the project configuration XML by using XStream, so this allows you to use
instance fields to remember the configuration.
When a build is performed, the perform(hudson.model.AbstractBuild, hudson.Launcher, hudson.model.BuildListener) method will be invoked.
| Modifier and Type | Class and Description |
|---|---|
static class |
ElectricFlowPublishApplication.DescriptorImpl
Descriptor for
BuildStepDescriptor. |
| Constructor and Description |
|---|
ElectricFlowPublishApplication(String credential,
String artifactName,
String filePath) |
| Modifier and Type | Method and Description |
|---|---|
static File |
createZipArchive(String basePath,
String archiveName,
List<File> files) |
static File |
createZipArchive(String basePath,
String archiveName,
List<File> files,
boolean cutTopLevelDir) |
static File |
createZipArchive(String basePath,
String archiveName,
String path) |
static File |
createZipArchive(String basePath,
String archiveName,
String[] files) |
String |
getCredential()
We'll use this from the
config.jelly. |
static String |
getCurrentTimeStamp() |
ElectricFlowPublishApplication.DescriptorImpl |
getDescriptor() |
String |
getFilePath() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
static File |
makeApplicationArchive(String workspaceDir,
String filePath) |
boolean |
perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
all, getProjectAction, needsToRunAfterFinalized, prebuildpublic boolean perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerpublic String getCredential()
config.jelly.config.jelly.public ElectricFlowPublishApplication.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Publisherpublic String getFilePath()
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
public static File createZipArchive(String basePath, String archiveName, String path) throws IOException
IOExceptionpublic static File createZipArchive(String basePath, String archiveName, String[] files) throws IOException
IOExceptionpublic static File createZipArchive(String basePath, String archiveName, List<File> files) throws IOException
IOExceptionpublic static File createZipArchive(String basePath, String archiveName, List<File> files, boolean cutTopLevelDir) throws IOException
IOExceptionpublic static File makeApplicationArchive(String workspaceDir, String filePath) throws IOException
IOExceptionpublic static String getCurrentTimeStamp()
Copyright © 2016–2017. All rights reserved.