Class 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.
    • Constructor Detail

      • S3BlobStoreConfig

        public S3BlobStoreConfig()
    • Method Detail

      • getContainer

        public String getContainer()
      • setContainer

        @DataBoundSetter
        public void setContainer​(String container)
      • getPrefix

        public String getPrefix()
      • setPrefix

        @DataBoundSetter
        public void setPrefix​(String prefix)
      • 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

        public String getCustomEndpoint()
      • setCustomEndpoint

        @DataBoundSetter
        public void setCustomEndpoint​(String customEndpoint)
      • getResolvedCustomEndpoint

        public String getResolvedCustomEndpoint()
      • getCustomSigningRegion

        public String getCustomSigningRegion()
      • setCustomSigningRegion

        @DataBoundSetter
        public void setCustomSigningRegion​(String customSigningRegion)
      • getAmazonS3ClientBuilderWithCredentials

        public com.amazonaws.services.s3.AmazonS3ClientBuilder getAmazonS3ClientBuilderWithCredentials()
                                                                                                throws IOException
        Throws:
        IOException
      • doCheckCustomSigningRegion

        public FormValidation doCheckCustomSigningRegion​(@QueryParameter
                                                         String customSigningRegion)
      • doCheckCustomEndpoint

        public FormValidation doCheckCustomEndpoint​(@QueryParameter
                                                    String customEndpoint)
      • createS3Bucket

        public com.amazonaws.services.s3.model.Bucket createS3Bucket​(String name)
                                                              throws IOException
        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)