@RequiresDomain(value=StorageScopeRequirement.class) public class StdoutUploadStep extends hudson.tasks.Recorder implements jenkins.tasks.SimpleBuildStep, Serializable
StdoutUpload
to be run in pipelines. Run only in post step.Modifier and Type | Class and Description |
---|---|
static class |
StdoutUploadStep.DescriptorImpl
Descriptor for
StdoutUploadStep |
hudson.tasks.Publisher.DescriptorExtensionListImpl
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
StdoutUploadStep(String credentialsId,
String bucket,
Optional<UploadModule> module,
String logName)
Construct the StdoutUpload uploader to use the provided credentials to upload build artifacts.
|
StdoutUploadStep(String credentialsId,
String bucket,
String logName)
Constructs a new
StdoutUploadStep . |
Modifier and Type | Method and Description |
---|---|
String |
getBucket() |
String |
getCredentialsId() |
String |
getLogName() |
String |
getPathPrefix() |
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) |
void |
setSharedPublicly(boolean sharedPublicly) |
void |
setShowInline(boolean showInline) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, getProjectActions, perform, perform, prebuild
@DataBoundConstructor public StdoutUploadStep(String credentialsId, String bucket, String logName)
StdoutUploadStep
.credentialsId
- The credentials to utilize for authenticating with GCS.bucket
- GCS bucket to upload build artifacts to.logName
- Name of log file to store to GCS bucket.public StdoutUploadStep(String credentialsId, String bucket, Optional<UploadModule> module, String logName)
credentialsId
- The credentials to utilize for authenticating with GCS.bucket
- GCS bucket to upload build artifacts to.module
- Helper class for connecting to the GCS API.logName
- Name of log file to store to GCS bucket.@DataBoundSetter public void setSharedPublicly(boolean sharedPublicly)
sharedPublicly
- Whether to surface the file being uploaded to anyone with the link.public boolean isSharedPublicly()
@DataBoundSetter public void setShowInline(boolean showInline)
showInline
- Whether to indicate in metadata that the file should be viewable inline in
web browsers, rather than requiring it to be downloaded first.public boolean isShowInline()
@DataBoundSetter public void setPathPrefix(@Nullable String pathPrefix)
pathPrefix
- The path prefix that will be stripped from uploaded files. May be null if no
path prefix needs to be stripped. Filenames that do not start with this prefix will not be
modified. Trailing slash is automatically added if it is missing.public String getLogName()
public String getBucket()
public String getCredentialsId()
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
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–2020. All rights reserved.