@RequiresDomain(value=StorageScopeRequirement.class) public class GoogleCloudStorageUploader extends hudson.tasks.Recorder
Modifier and Type | Class and Description |
---|---|
static class |
GoogleCloudStorageUploader.DescriptorImpl
Descriptor for the extension for uploading build artifacts to Google Cloud Storage.
|
hudson.tasks.Publisher.DescriptorExtensionListImpl
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() |
hudson.model.Action |
getProjectAction(hudson.model.AbstractProject<?,?> project) |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
Collection<AbstractUpload> |
getUploads() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
all, getProjectAction, needsToRunAfterFinalized, 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(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws IOException, InterruptedException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
IOException
InterruptedException
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
public GoogleCloudStorageUploader.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Recorder
public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
getProjectAction
in interface hudson.tasks.BuildStep
getProjectAction
in class hudson.tasks.BuildStepCompatibilityLayer
Copyright © 2016–2020. All rights reserved.