@RequiresDomain(value=StorageScopeRequirement.class) public class ExpiringBucketLifecycleManagerStep extends Recorder implements SimpleBuildStep, Serializable
ExpiringBucketLifecycleManager
to be run in pipelines. Run only in
post step.Modifier and Type | Class and Description |
---|---|
static class |
ExpiringBucketLifecycleManagerStep.DescriptorImpl
Descriptor for
ExpiringBucketLifecycleManagerStep |
Publisher.DescriptorExtensionListImpl
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
BuildStep.PublisherList
ExtensionPoint.LegacyInstancesAreScopedToHudson
BUILDERS, PUBLISHERS
Constructor and Description |
---|
ExpiringBucketLifecycleManagerStep(String credentialsId,
String bucket,
Integer ttl)
Constructs a new
ExpiringBucketLifecycleManagerStep . |
ExpiringBucketLifecycleManagerStep(String credentialsId,
String bucket,
Optional<UploadModule> module,
Integer ttl)
Construct the ExpiringBucketLifecycleManager uploader to use the provided credentials to set
number of days after which to delete data stored in the specified GCS bucket.
|
Modifier and Type | Method and Description |
---|---|
String |
getBucket() |
String |
getCredentialsId() |
int |
getTtl() |
void |
perform(Run<?,?> run,
FilePath workspace,
Launcher launcher,
TaskListener listener)
*
|
getDescriptor
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, getProjectActions, perform, perform, prebuild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
@DataBoundConstructor public ExpiringBucketLifecycleManagerStep(String credentialsId, String bucket, Integer ttl)
ExpiringBucketLifecycleManagerStep
.credentialsId
- The credentials to utilize for authenticating with GCS.bucket
- GCS Bucket in which to alter the time to live.ttl
- The number of days after which to delete data stored in the GCS bucket.public ExpiringBucketLifecycleManagerStep(String credentialsId, String bucket, Optional<UploadModule> module, Integer ttl)
credentialsId
- The credentials to utilize for authenticating with GCS.bucket
- GCS Bucket in which to alter the time to live.module
- Helper class for connecting to the GCS API.ttl
- The number of days after which to delete data stored in the GCS bucket.public String getCredentialsId()
public String getBucket()
public int getTtl()
public void perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException
perform
in interface SimpleBuildStep
IOException
Copyright © 2016–2019. All rights reserved.