@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()
The credentials we are using to authenticate with GCS.
|
String |
getCredentialsId()
The unique ID for the credentials we are using to
authenticate with GCS.
|
GoogleCloudStorageUploader.DescriptorImpl |
getDescriptor() |
hudson.model.Action |
getProjectAction(hudson.model.AbstractProject<?,?> project) |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
Collection<AbstractUpload> |
getUploads()
The set of tuples describing the artifacts to upload, and where
to upload them.
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
all, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectActions, 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(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerIOExceptionInterruptedExceptionpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
public GoogleCloudStorageUploader.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Recorderpublic hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
getProjectAction in interface hudson.tasks.BuildStepgetProjectAction in class hudson.tasks.BuildStepCompatibilityLayerCopyright © 2004-2014. All Rights Reserved.