@RequiresDomain(value=StorageScopeRequirement.class) public class ClassicUploadStep extends hudson.tasks.Builder implements jenkins.tasks.SimpleBuildStep, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ClassicUploadStep.DescriptorImpl
Descriptor for the class.
|
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
ClassicUploadStep(String credentialsId,
String bucket,
String pattern) |
ClassicUploadStep(String credentialsId,
String bucket,
UploadModule module,
String pattern)
Construct the classic upload step.
|
Modifier and Type | Method and Description |
---|---|
String |
getBucket() |
String |
getCredentialsId()
The unique ID for the credentials we are using to
authenticate with GCS.
|
String |
getPathPrefix() |
String |
getPattern() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
boolean |
isSharedPublicly() |
boolean |
isShowInline() |
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
setPathPrefix(String pathPrefix)
The path prefix that will be stripped from uploaded files.
|
void |
setSharedPublicly(boolean sharedPublicly)
Whether to surface the file being uploaded to anyone with the link.
|
void |
setShowInline(boolean showInline)
Whether to indicate in metadata that the file should be viewable inline
in web browsers, rather than requiring it to be downloaded first.
|
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
@DataBoundConstructor public ClassicUploadStep(String credentialsId, String bucket, String pattern)
public ClassicUploadStep(String credentialsId, String bucket, @Nullable UploadModule module, String pattern)
@DataBoundSetter public void setSharedPublicly(boolean sharedPublicly)
public boolean isSharedPublicly()
@DataBoundSetter public void setShowInline(boolean showInline)
public boolean isShowInline()
@DataBoundSetter public void setPathPrefix(@Nullable String pathPrefix)
public String getPattern()
public String getBucket()
public String getCredentialsId()
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
getRequiredMonitorService
in class hudson.tasks.Builder
public void perform(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws IOException
perform
in interface jenkins.tasks.SimpleBuildStep
IOException
Copyright © 2016–2017. All rights reserved.