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 classes/interfaces inherited from class io.jenkins.plugins.artifact_manager_jclouds.BlobStoreProvider
BlobStoreProvider.HttpMethod
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionA constant for the blob container name to use.org.jclouds.blobstore.BlobStoreContext
Creates the jclouds handle for working with blob.A constant for the blob path prefix to use.boolean
A constant to define whether we should delete artifacts or leave them to be managed on the blob service side.boolean
A 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
getDescriptor
-
Constructor Details
-
S3BlobStore
@DataBoundConstructor public S3BlobStore()
-
-
Method Details
-
getPrefix
Description copied from class:BlobStoreProvider
A constant for the blob path prefix to use.- Specified by:
getPrefix
in classBlobStoreProvider
-
getContainer
Description copied from class:BlobStoreProvider
A constant for the blob container name to use.- Specified by:
getContainer
in classBlobStoreProvider
-
getRegion
-
getConfiguration
-
isDeleteArtifacts
public boolean isDeleteArtifacts()Description copied from class:BlobStoreProvider
A constant to define whether we should delete artifacts or leave them to be managed on the blob service side.- Specified by:
isDeleteArtifacts
in classBlobStoreProvider
-
isDeleteStashes
public boolean isDeleteStashes()Description copied from class:BlobStoreProvider
A constant to define whether we should delete stashes or leave them to be managed on the blob service side.- Specified by:
isDeleteStashes
in classBlobStoreProvider
-
getContext
Description copied from class:BlobStoreProvider
Creates the jclouds handle for working with blob.- Specified by:
getContext
in classBlobStoreProvider
- Throws:
IOException
-
toURI
Description copied from class:BlobStoreProvider
Get a provider-specific URI.- Specified by:
toURI
in classBlobStoreProvider
- Parameters:
container
- container where this exists.key
- fully qualified name relative to the container.- Returns:
- the URI
-
toExternalURL
public URL toExternalURL(@NonNull org.jclouds.blobstore.domain.Blob blob, @NonNull BlobStoreProvider.HttpMethod httpMethod) throws IOException Description copied from class:BlobStoreProvider
Generate a URL valid for downloading OR uploading the blob for a limited period of time- Specified by:
toExternalURL
in 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:
-
toString
-