From 87922b9c52e250932a2bc23e977870b6592be60a Mon Sep 17 00:00:00 2001 From: Minreaux <9372700+Minreaux@users.noreply.github.com> Date: Wed, 13 Dec 2023 01:08:40 -0800 Subject: [PATCH] Add support for Azure CDN endpoint URL (#280) Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com> Co-authored-by: Tim Jacomb --- .gitignore | 1 + pom.xml | 32 +++++------ .../AzureStorageBuilder.java | 1 + .../WAStoragePublisher.java | 9 ++- .../beans/StorageAccountInfo.java | 18 +++++- .../helper/AzureCredentialsBinding.java | 19 +++++++ .../helper/AzureStorageAccount.java | 38 +++++++++---- .../helper/AzureUtils.java | 13 +++++ .../helper/CredentialMigration.java | 6 +- .../config-variables.jelly | 3 + .../config-variables.properties | 1 + .../AzureStorageAccount/credentials.jelly | 11 +++- src/main/resources/global.properties | 1 + src/main/webapp/help-cdnEndPointURL.html | 11 ++++ .../IntegrationTests/IntegrationTest.java | 16 ++++-- .../WAStorageClientUploadIT.java | 6 +- .../windowsazurestorage/ConfigAsCodeTest.java | 55 +++++++++++++++++-- .../beans/StorageAccountInfoTest.java | 34 ++++++++++-- .../helper/AzureStorageAccountTest.java | 34 ++++++++---- .../helper/CredentialMigrationTest.java | 8 +-- .../helper/CredentialRenameTest.java | 6 +- .../configuration-as-code.yml | 10 +++- .../testRenameStorageConfig/credentials.xml | 3 +- 23 files changed, 260 insertions(+), 76 deletions(-) create mode 100644 src/main/webapp/help-cdnEndPointURL.html diff --git a/.gitignore b/.gitignore index e98bd4e6..0989fad5 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ index.html *.dylib .env testshare* +.vscode/ diff --git a/pom.xml b/pom.xml index 0e6b9734..e383e8ce 100644 --- a/pom.xml +++ b/pom.xml @@ -10,13 +10,12 @@ ${changelist} hpi Azure Storage plugin - Uploads build artifacts or downloads build dependencies using Azure storage https://github.com/jenkinsci/azure-storage-plugin 9999-SNAPSHOT jenkinsci/azure-storage-plugin - 2.361.4 + 2.387.3 @@ -26,6 +25,18 @@ + + + + io.jenkins.tools.bom + bom-2.387.x + 2543.vfb_1a_5fb_9496d + import + pom + + + + io.jenkins.plugins @@ -35,7 +46,6 @@ org.jenkins-ci.plugins copyartifact - 1.46 org.mockito @@ -82,7 +92,6 @@ io.jenkins.blueocean blueocean-rest - 1.24.6 @@ -97,21 +106,9 @@ - - - - io.jenkins.tools.bom - bom-2.277.x - 984.vb5eaac999a7e - import - pom - - - - scm:git:ssh://github.com/${gitHubRepo}.git - scm:git:ssh://git@github.com/${gitHubRepo}.git + scm:git:git@github.com:${gitHubRepo}.git https://github.com/${gitHubRepo} ${scmTag} @@ -164,7 +161,6 @@ checkstyle.xml - UTF-8 true