org.jenkins-ci.plugins.workflow
diff --git a/src/main/java/com/microsoft/jenkins/artifactmanager/Utils.java b/src/main/java/com/microsoft/jenkins/artifactmanager/Utils.java
index 3cc2413..8d612b6 100644
--- a/src/main/java/com/microsoft/jenkins/artifactmanager/Utils.java
+++ b/src/main/java/com/microsoft/jenkins/artifactmanager/Utils.java
@@ -102,7 +102,13 @@ public static String getBlobUrl(
BlobClient blob = container.getBlobClient(blobName);
- return blob.getBlobUrl();
+ // Check if CDN endpoint exists and use CDN URL, otherwise use blob URL
+ String cdnEndpoint = storageAccount.getCdnEndPointURL();
+ if (!StringUtils.isBlank(cdnEndpoint)) {
+ return (cdnEndpoint + "/" + blob.getContainerName() + "/" + blob.getBlobName());
+ } else {
+ return blob.getBlobUrl();
+ }
}
public static String generateBlobSASURL(
diff --git a/src/main/resources/index.jelly b/src/main/resources/index.jelly
index 63da622..dc3cf53 100644
--- a/src/main/resources/index.jelly
+++ b/src/main/resources/index.jelly
@@ -1,4 +1,4 @@
- Jenkins Azure artifact manager plugin
+ Jenkins Azure Artifact Manager plugin enables keeping artifacts and Pipeline stashes in Azure Blob storage.
diff --git a/src/test/java/com/microsoft/jenkins/artifactmanager/IntegrationTests/IntegrationTest.java b/src/test/java/com/microsoft/jenkins/artifactmanager/IntegrationTests/IntegrationTest.java
index 1f1f865..ccb51e0 100644
--- a/src/test/java/com/microsoft/jenkins/artifactmanager/IntegrationTests/IntegrationTest.java
+++ b/src/test/java/com/microsoft/jenkins/artifactmanager/IntegrationTests/IntegrationTest.java
@@ -41,7 +41,7 @@ protected static class TestEnvironment {
azureStorageAccountKey2 = TestEnvironment.loadFromEnv("AZURE_STORAGE_TEST_STORAGE_ACCOUNT_KEY2");
blobURL = Utils.DEF_BLOB_URL;
- sampleStorageAccount = new StorageAccountInfo(azureStorageAccountName, azureStorageAccountKey1, blobURL);
+ sampleStorageAccount = new StorageAccountInfo(azureStorageAccountName, azureStorageAccountKey1, blobURL, "");
containerName = name;
shareName = name;
}