Class Utils
java.lang.Object
com.microsoft.jenkins.artifactmanager.Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containTokens
(String text) static com.azure.storage.blob.sas.BlobServiceSasSignatureValues
static String
generateBlobSASURL
(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount, String containerName, String blobName) static OffsetDateTime
static AzureArtifactConfig
static com.azure.storage.blob.BlobContainerClient
getBlobContainerReference
(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount, String containerName, boolean createIfNotExist) static String
getBlobUrl
(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount, String containerName, String blobName) static com.azure.storage.blob.BlobServiceClient
getCloudStorageAccount
(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount) static com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo
getStorageAccount
(Item item) static boolean
isPrefixValid
(String prefix) static String
static boolean
validateContainerName
(String containerName)
-
Method Details
-
getArtifactConfig
-
validateContainerName
-
isPrefixValid
-
containTokens
-
replaceMacro
-
getStorageAccount
public static com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo getStorageAccount(Item item) -
getBlobUrl
-
generateBlobSASURL
-
generateBlobPolicy
public static com.azure.storage.blob.sas.BlobServiceSasSignatureValues generateBlobPolicy() -
generateExpiryDate
-
getBlobContainerReference
public static com.azure.storage.blob.BlobContainerClient getBlobContainerReference(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount, String containerName, boolean createIfNotExist) throws URISyntaxException - Throws:
URISyntaxException
-
getCloudStorageAccount
public static com.azure.storage.blob.BlobServiceClient getCloudStorageAccount(com.microsoftopentechnologies.windowsazurestorage.beans.StorageAccountInfo storageAccount)
-