@RequiresDomain(value=StorageScopeRequirement.class) public class GoogleCloudStorageUploader extends Recorder
Modifier and Type | Class and Description |
---|---|
static class |
GoogleCloudStorageUploader.DescriptorImpl
Descriptor for the extension for uploading build artifacts to Google Cloud Storage.
|
Publisher.DescriptorExtensionListImpl
ExtensionPoint.LegacyInstancesAreScopedToHudson
BuildStep.PublisherList
BUILDERS, PUBLISHERS
Constructor and Description |
---|
GoogleCloudStorageUploader(String credentialsId,
List<AbstractUpload> uploads)
Construct the GCS uploader to use the provided credentials to upload build artifacts.
|
Modifier and Type | Method and Description |
---|---|
com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials |
getCredentials() |
String |
getCredentialsId() |
GoogleCloudStorageUploader.DescriptorImpl |
getDescriptor() |
Action |
getProjectAction(AbstractProject<?,?> project) |
BuildStepMonitor |
getRequiredMonitorService() |
Collection<AbstractUpload> |
getUploads() |
boolean |
perform(AbstractBuild<?,?> build,
Launcher launcher,
BuildListener listener) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectActions, perform, prebuild
@DataBoundConstructor public GoogleCloudStorageUploader(String credentialsId, @Nullable List<AbstractUpload> uploads)
credentialsId
- The credentials to utilize for authenticating with GCSuploads
- The list of uploads the user has requested be donepublic String getCredentialsId()
public com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials getCredentials()
public Collection<AbstractUpload> getUploads()
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
perform
in interface BuildStep
perform
in class BuildStepCompatibilityLayer
IOException
InterruptedException
public BuildStepMonitor getRequiredMonitorService()
public GoogleCloudStorageUploader.DescriptorImpl getDescriptor()
getDescriptor
in interface Describable<Publisher>
getDescriptor
in class Recorder
public Action getProjectAction(AbstractProject<?,?> project)
getProjectAction
in interface BuildStep
getProjectAction
in class BuildStepCompatibilityLayer
Copyright © 2016–2019. All rights reserved.