Class S3BlobStore
java.lang.Object
hudson.model.AbstractDescribableImpl<BlobStoreProvider>
io.jenkins.plugins.artifact_manager_jclouds.BlobStoreProvider
io.jenkins.plugins.artifact_manager_jclouds.s3.S3BlobStore
- All Implemented Interfaces:
ExtensionPoint,Describable<BlobStoreProvider>,Serializable
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class S3BlobStore
extends BlobStoreProvider
Extension that customizes JCloudsBlobStore for AWS S3. Credentials are fetched from the environment, env vars, aws
profiles,...
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.jenkins.plugins.artifact_manager_jclouds.BlobStoreProvider
BlobStoreProvider.HttpMethodNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.services.s3.S3ClientCreates a client usable for working with the blob store.A constant for the blob container name to use.A constant for the blob path prefix to use.software.amazon.awssdk.services.s3.presigner.S3PresignergetS3Presigner(software.amazon.awssdk.services.s3.S3Client s3Client) booleanA constant to define whether we should delete artifacts or leave them to be managed on the blob service side.booleanA constant to define whether we should delete stashes or leave them to be managed on the blob service side.toExternalURL(String container, String key, String contentType, BlobStoreProvider.HttpMethod httpMethod) Generate a URL valid for downloading OR uploading the blob for a limited period of timetoString()Get a provider-specific URI.Methods inherited from class io.jenkins.plugins.artifact_manager_jclouds.BlobStoreProvider
getBlobPath, getDescriptor
-
Constructor Details
-
S3BlobStore
@DataBoundConstructor public S3BlobStore()
-
-
Method Details
-
getPrefix
Description copied from class:BlobStoreProviderA constant for the blob path prefix to use.- Specified by:
getPrefixin classBlobStoreProvider
-
getContainer
Description copied from class:BlobStoreProviderA constant for the blob container name to use.- Specified by:
getContainerin classBlobStoreProvider
-
getRegion
-
getConfiguration
-
isDeleteArtifacts
public boolean isDeleteArtifacts()Description copied from class:BlobStoreProviderA constant to define whether we should delete artifacts or leave them to be managed on the blob service side.- Specified by:
isDeleteArtifactsin classBlobStoreProvider
-
isDeleteStashes
public boolean isDeleteStashes()Description copied from class:BlobStoreProviderA constant to define whether we should delete stashes or leave them to be managed on the blob service side.- Specified by:
isDeleteStashesin classBlobStoreProvider
-
getClient
Description copied from class:BlobStoreProviderCreates a client usable for working with the blob store. Callers are responsible for closing it.- Specified by:
getClientin classBlobStoreProvider- Throws:
IOException
-
toURI
Description copied from class:BlobStoreProviderGet a provider-specific URI.- Specified by:
toURIin classBlobStoreProvider- Parameters:
container- container where this exists.key- fully qualified name relative to the container.- Returns:
- the URI
-
getS3Presigner
public software.amazon.awssdk.services.s3.presigner.S3Presigner getS3Presigner(software.amazon.awssdk.services.s3.S3Client s3Client) -
toExternalURL
public URL toExternalURL(@NonNull String container, @NonNull String key, @CheckForNull String contentType, @NonNull BlobStoreProvider.HttpMethod httpMethod) throws IOException Description copied from class:BlobStoreProviderGenerate a URL valid for downloading OR uploading the blob for a limited period of time- Specified by:
toExternalURLin classBlobStoreProvider- Parameters:
container- container where the blob exists (or will exist).key- fully qualified name relative to the container.contentType- content type to associate with the object; only relevant for uploads, may benullotherwise.httpMethod- HTTP method to create a URL for (downloads or uploads)- Returns:
- the URL
- Throws:
IOException- See Also:
-
artifactUrls
public Map<String,URL> artifactUrls(Map<String, String> artifacts, Map<String, throws IOExceptionString> contentTypes, String key) - Overrides:
artifactUrlsin classBlobStoreProvider- Throws:
IOException
-
toString
-