public final class Utils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
containTokens(String text) |
static com.microsoft.azure.storage.blob.SharedAccessBlobPolicy |
generateBlobPolicy() |
static String |
generateBlobSASURL(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount,
String containerName,
String blobName) |
static Date |
generateExpiryDate() |
static AzureArtifactConfig |
getArtifactConfig() |
static com.microsoft.azure.storage.blob.CloudBlobContainer |
getBlobContainerReference(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount,
String containerName,
boolean createIfNotExist,
boolean allowRetry,
Boolean cntPubAccess) |
static com.microsoft.azure.storage.CloudStorageAccount |
getCloudStorageAccount(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount) |
static jenkins.model.Jenkins |
getJenkinsInstance() |
static String |
getPluginInstance() |
static String |
getPluginVersion() |
static com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo |
getStorageAccount(hudson.model.Item item) |
static boolean |
isPrefixValid(String prefix) |
static String |
replaceMacro(String s,
Map<String,String> props,
Locale locale) |
static com.microsoft.azure.storage.OperationContext |
updateUserAgent() |
static com.microsoft.azure.storage.OperationContext |
updateUserAgent(Long contentLength) |
static boolean |
validateContainerName(String containerName) |
public static AzureArtifactConfig getArtifactConfig()
public static boolean validateContainerName(String containerName)
public static boolean isPrefixValid(String prefix)
public static boolean containTokens(String text)
public static com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo getStorageAccount(hudson.model.Item item)
public static String generateBlobSASURL(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount, String containerName, String blobName) throws Exception
Exception
public static com.microsoft.azure.storage.blob.SharedAccessBlobPolicy generateBlobPolicy()
public static Date generateExpiryDate()
public static com.microsoft.azure.storage.blob.CloudBlobContainer getBlobContainerReference(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount, String containerName, boolean createIfNotExist, boolean allowRetry, Boolean cntPubAccess) throws URISyntaxException, com.microsoft.azure.storage.StorageException, IOException
URISyntaxException
com.microsoft.azure.storage.StorageException
IOException
public static com.microsoft.azure.storage.CloudStorageAccount getCloudStorageAccount(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount) throws URISyntaxException, MalformedURLException
@Nonnull public static jenkins.model.Jenkins getJenkinsInstance()
public static String getPluginInstance()
public static String getPluginVersion()
public static com.microsoft.azure.storage.OperationContext updateUserAgent() throws IOException
IOException
public static com.microsoft.azure.storage.OperationContext updateUserAgent(Long contentLength) throws IOException
IOException
Copyright © 2016–2019. All rights reserved.