Class BlobStoreProfile
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BlobStoreProfile>
-
- jenkins.plugins.jclouds.blobstore.BlobStoreProfile
-
- All Implemented Interfaces:
Describable<BlobStoreProfile>
public class BlobStoreProfile extends AbstractDescribableImpl<BlobStoreProfile>
Model class for Blobstore profile. User can configure multiple profiles to upload artifacts to different providers.- Author:
- Vijay Kiran
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlobStoreProfile.ConverterImpl
static class
BlobStoreProfile.DescriptorImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCredentialsId()
credentials.String
getEndPointUrl()
Provider endpoint.String
getLocationId()
location.String
getProfileName()
Configured profile.String
getProviderName()
Provider Name as per the JClouds Blobstore supported providers.boolean
getTrustAll()
void
setCredentialsId(String value)
void
upload(String container, String path, FilePath filePath)
Upload the specified file from the-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
getTrustAll
public boolean getTrustAll()
-
getProfileName
public String getProfileName()
Configured profile.- Returns:
- - name of the profile.
-
getProviderName
public String getProviderName()
Provider Name as per the JClouds Blobstore supported providers.- Returns:
- - providerName String
-
getEndPointUrl
public String getEndPointUrl()
Provider endpoint.- Returns:
- The endpoint URL.
-
getCredentialsId
public String getCredentialsId()
credentials.- Returns:
- The ID of the credentials object.
-
setCredentialsId
public void setCredentialsId(String value)
-
getLocationId
public String 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.
-
-