public class ClassicUpload extends AbstractUpload
Modifier and Type | Class and Description |
---|---|
static class |
ClassicUpload.DescriptorImpl
Denotes this is an
AbstractUpload plugin |
AbstractUpload.UploadSpec
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
ClassicUpload(String bucket,
UploadModule module,
String pattern,
String bucketNameWithVars,
String sourceGlobWithVars)
Construct the classic upload implementation from the base properties and the glob for matching
files.
|
Modifier and Type | Method and Description |
---|---|
String |
getDetails() |
protected AbstractUpload.UploadSpec |
getInclusions(Run<?,?> run,
FilePath workspace,
TaskListener listener)
Implementations override this interface in order to surface the set of
FilePath s the
core logic should upload. |
String |
getPattern() |
all, annotateObject, forResult, getBucket, getDescriptor, getMetadata, getModule, getOrCreateBucket, getPathPrefix, isForFailedJobs, isSharedPublicly, isShowInline, perform, perform, setForFailedJobs, setPathPrefix, setSharedPublicly, setShowInline
@DataBoundConstructor public ClassicUpload(String bucket, @Nullable UploadModule module, String pattern, @Deprecated @Nullable String bucketNameWithVars, @Deprecated @Nullable String sourceGlobWithVars)
bucket
- GCS bucket to upload files to.module
- Helper class for connecting to the GCS API.pattern
- The glob of files to upload, which potentially contains unresolved symbols, such
as $JOB_NAME and $BUILD_NUMBER.bucketNameWithVars
- Deprecated format for bucket.sourceGlobWithVars
- Deprecated. Old name kept for deserialization.public String getDetails()
getDetails
in class AbstractUpload
@Nullable protected AbstractUpload.UploadSpec getInclusions(Run<?,?> run, FilePath workspace, 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.
public String getPattern()
Copyright © 2016–2019. All rights reserved.