Class BlobStoreProfile
java.lang.Object
hudson.model.AbstractDescribableImpl<BlobStoreProfile>
jenkins.plugins.jclouds.blobstore.BlobStoreProfile
- All Implemented Interfaces:
Describable<BlobStoreProfile>
Model class for Blobstore profile. User can configure multiple profiles to upload artifacts to different providers.
- Author:
- Vijay Kiran
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncredentials.Provider endpoint.location.Configured profile.Provider Name as per the JClouds Blobstore supported providers.boolean
void
setCredentialsId
(String value) void
Upload the specified file from theMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
BlobStoreProfile
-
-
Method Details
-
getTrustAll
public boolean getTrustAll() -
getProfileName
Configured profile.- Returns:
- - name of the profile.
-
getProviderName
Provider Name as per the JClouds Blobstore supported providers.- Returns:
- - providerName String
-
getEndPointUrl
Provider endpoint.- Returns:
- The endpoint URL.
-
getCredentialsId
credentials.- Returns:
- The ID of the credentials object.
-
setCredentialsId
-
getLocationId
location.- Returns:
- The ID of the selected location.
-
upload
public void upload(String container, String path, FilePath filePath) throws IOException, InterruptedException Upload the specified file from the- Parameters:
container
- - The container where the file needs to be uploaded.path
- - The path in container where the file needs to be uploaded.filePath
- - theFilePath
of the file which needs to be uploaded.- Throws:
IOException
- if an IO error occurs.InterruptedException
- If the upload gets interrupted.
-