public final class MinioUploader
extends hudson.tasks.Recorder
implements jenkins.tasks.SimpleBuildStep
Builder.
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest) is invoked and a new
MinioUploader 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.Run<?, ?>, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener) method will be invoked.
| Modifier and Type | Class and Description |
|---|---|
static class |
MinioUploader.DescriptorImpl
Descriptor for
MinioUploader. |
hudson.tasks.Publisher.DescriptorExtensionListImpljenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Modifier and Type | Field and Description |
|---|---|
String |
bucketName
Bucket name to store the build artifacts.
|
String |
excludedFile
File name relative to the workspace root to be excluded from upload.
|
String |
objectNamePrefix
Prefix to be added to the object name before upload.
|
String |
sourceFile
File name relative to the workspace root to upload.
|
| Constructor and Description |
|---|
MinioUploader(String sourceFile,
String excludedFile,
String bucketName,
String objectNamePrefix) |
| Modifier and Type | Method and Description |
|---|---|
MinioUploader.DescriptorImpl |
getDescriptor() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath ws,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
all, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, perform, prebuildpublic String sourceFile
public String excludedFile
public String bucketName
public String objectNamePrefix
public void perform(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.FilePath ws, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener)
perform in interface jenkins.tasks.SimpleBuildSteppublic MinioUploader.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Recorderpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildStepCopyright © 2016–2017. All rights reserved.