Class S3BlobStoreConfig
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.aws.global_configuration.AbstractAwsGlobalConfiguration
io.jenkins.plugins.artifact_manager_jclouds.s3.S3BlobStoreConfig
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,Loadable
,OnMaster
@Symbol("s3")
@Extension
public final class S3BlobStoreConfig
extends io.jenkins.plugins.aws.global_configuration.AbstractAwsGlobalConfiguration
Store the S3BlobStore configuration to save it on a separate file. This make that
the change of container does not affected to the Artifact functionality, you could change the container
and it would still work if both container contains the same data.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.amazonaws.services.s3.model.Bucket
createS3Bucket
(String name) create an S3 Bucket.doCheckContainer
(String container) doCheckCustomEndpoint
(String customEndpoint) doCheckCustomSigningRegion
(String customSigningRegion) doCheckPrefix
(String prefix) doCheckUseHttp
(boolean useHttp) doCreateS3Bucket
(String container, boolean disableSessionToken) doValidateS3BucketConfig
(String container, String prefix, boolean useHttp, boolean useTransferAcceleration, boolean usePathStyleUrl, boolean disableSessionToken, String customEndpoint, String customSigningRegion) static S3BlobStoreConfig
get()
com.amazonaws.services.s3.AmazonS3ClientBuilder
boolean
boolean
boolean
boolean
boolean
boolean
void
setContainer
(String container) void
setCustomEndpoint
(String customEndpoint) void
setCustomSigningRegion
(String customSigningRegion) void
setDisableSessionToken
(boolean disableSessionToken) void
void
setUseHttp
(boolean useHttp) void
setUsePathStyleUrl
(boolean usePathStyleUrl) void
setUseTransferAcceleration
(boolean useTransferAcceleration) Methods inherited from class io.jenkins.plugins.aws.global_configuration.AbstractAwsGlobalConfiguration
getCategory, processExceptionMessage
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPage
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
S3BlobStoreConfig
public S3BlobStoreConfig()
-
-
Method Details
-
getContainer
-
setContainer
-
getPrefix
-
setPrefix
-
isDeleteArtifacts
public boolean isDeleteArtifacts() -
isDeleteStashes
public boolean isDeleteStashes() -
getUsePathStyleUrl
public boolean getUsePathStyleUrl() -
setUsePathStyleUrl
@DataBoundSetter public void setUsePathStyleUrl(boolean usePathStyleUrl) -
getUseHttp
public boolean getUseHttp() -
setUseHttp
@DataBoundSetter public void setUseHttp(boolean useHttp) -
getUseTransferAcceleration
public boolean getUseTransferAcceleration() -
setUseTransferAcceleration
@DataBoundSetter public void setUseTransferAcceleration(boolean useTransferAcceleration) -
getDisableSessionToken
public boolean getDisableSessionToken() -
setDisableSessionToken
@DataBoundSetter public void setDisableSessionToken(boolean disableSessionToken) -
getCustomEndpoint
-
setCustomEndpoint
-
getResolvedCustomEndpoint
-
getCustomSigningRegion
-
setCustomSigningRegion
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<GlobalConfiguration>
-
get
-
getAmazonS3ClientBuilderWithCredentials
public com.amazonaws.services.s3.AmazonS3ClientBuilder getAmazonS3ClientBuilderWithCredentials() throws IOException- Throws:
IOException
-
doCheckContainer
-
doCheckPrefix
-
doCheckCustomSigningRegion
-
doCheckCustomEndpoint
-
doCheckUseHttp
-
createS3Bucket
create an S3 Bucket.- Parameters:
name
- name of the S3 Bucket.- Returns:
- return the Bucket created.
- Throws:
IOException
- in case of error obtaining the credentials, in other kind of errors it will throw the runtime exceptions are thrown by createBucket method.
-
doCreateS3Bucket
public FormValidation doCreateS3Bucket(@QueryParameter String container, @QueryParameter boolean disableSessionToken) -
doValidateS3BucketConfig
public FormValidation doValidateS3BucketConfig(@QueryParameter String container, @QueryParameter String prefix, @QueryParameter boolean useHttp, @QueryParameter boolean useTransferAcceleration, @QueryParameter boolean usePathStyleUrl, @QueryParameter boolean disableSessionToken, @QueryParameter String customEndpoint, @QueryParameter String customSigningRegion)
-