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 TypeMethodDescriptionartifactUrls(Map<String, String> artifacts, Map<String, String> contentTypes, org.jclouds.blobstore.BlobStore blobStore, String key) A constant for the blob container name to use.org.jclouds.blobstore.BlobStoreContextCreates the jclouds handle for working with blob.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(org.jclouds.blobstore.domain.Blob blob, 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
-
getContext
Description copied from class:BlobStoreProviderCreates the jclouds handle for working with blob.- Specified by:
getContextin 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 org.jclouds.blobstore.domain.Blob blob, @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:
blob- blob to generate the URL forhttpMethod- 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, org.jclouds.blobstore.BlobStore blobStore, String key) - Overrides:
artifactUrlsin classBlobStoreProvider- Throws:
IOException
-
toString
-