public class StdoutUpload extends AbstractUpload
Modifier and Type | Class and Description |
---|---|
static class |
StdoutUpload.DescriptorImpl
Denotes this is an
AbstractUpload plugin |
AbstractUpload.UploadSpec
Constructor and Description |
---|
StdoutUpload(String bucket,
UploadModule module,
String logName,
String bucketNameWithVars)
Construct the Upload with the stock properties, and the additional information about how to
name the build log file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
forResult(hudson.model.Result result)
Determine whether we should upload the pattern for the given build result.
|
String |
getDetails() |
protected AbstractUpload.UploadSpec |
getInclusions(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
Implementations override this interface in order to surface the set of
FilePath s the
core logic should upload. |
String |
getLogName() |
all, annotateObject, getBucket, getDescriptor, getMetadata, getModule, getOrCreateBucket, getPathPrefix, isForFailedJobs, isSharedPublicly, isShowInline, perform, perform, setForFailedJobs, setPathPrefix, setSharedPublicly, setShowInline
@DataBoundConstructor public StdoutUpload(@Nullable String bucket, @Nullable UploadModule module, String logName, @Deprecated @Nullable String bucketNameWithVars)
bucket
- GCS bucket to upload build artifacts to.module
- An UploadModule
to use for execution.logName
- Name of log file to store to GCS bucket.bucketNameWithVars
- Deprecated format for bucket.public String getLogName()
public String getDetails()
getDetails
in class AbstractUpload
public boolean forResult(hudson.model.Result result)
forResult
in class AbstractUpload
result
- Result of the build run.@Nullable protected AbstractUpload.UploadSpec getInclusions(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener) throws UploadException
FilePath
s the
core logic should upload.getInclusions
in class AbstractUpload
run
- Current job being run.workspace
- Workspace of node running the job.listener
- Listener for events of this job.FilePath
s to upload.UploadException
- If there was an issue fetching the inclusions.for further details.
Copyright © 2016–2020. All rights reserved.