-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Azure CDN endpoint URL (#280)
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com> Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
- Loading branch information
1 parent
e060643
commit 87922b9
Showing
23 changed files
with
260 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ index.html | |
*.dylib | ||
.env | ||
testshare* | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -635,6 +635,7 @@ public boolean configure(StaplerRequest req, JSONObject formData) | |
* @param was_storageAccName | ||
* @param was_storageAccountKey | ||
* @param was_blobEndPointURL | ||
* @param was_cdnEndPointURL | ||
Check warning on line 638 in src/main/java/com/microsoftopentechnologies/windowsazurestorage/WAStoragePublisher.java ci.jenkins.io / JavaDocJavaDoc @param
|
||
* @return | ||
Check warning on line 639 in src/main/java/com/microsoftopentechnologies/windowsazurestorage/WAStoragePublisher.java ci.jenkins.io / JavaDocJavaDoc @return
|
||
* @throws IOException | ||
* @throws ServletException | ||
Check warning on line 641 in src/main/java/com/microsoftopentechnologies/windowsazurestorage/WAStoragePublisher.java ci.jenkins.io / JavaDocJavaDoc @throws
|
||
|
@@ -643,7 +644,8 @@ public FormValidation doCheckAccount( | |
//CHECKSTYLE:OFF | ||
@QueryParameter String was_storageAccName, | ||
@QueryParameter String was_storageAccountKey, | ||
@QueryParameter String was_blobEndPointURL) throws IOException, ServletException { | ||
@QueryParameter String was_blobEndPointURL, | ||
@QueryParameter String was_cdnEndPointURL) throws IOException, ServletException { | ||
//CHECKSTYLE:ON | ||
|
||
if (StringUtils.isBlank(was_storageAccName)) { | ||
|
@@ -657,11 +659,12 @@ public FormValidation doCheckAccount( | |
} | ||
|
||
String blobEndPointURL = was_blobEndPointURL; | ||
String cdnEndPointURL = was_cdnEndPointURL; | ||
try { | ||
// Get formatted blob end point URL. | ||
// Get formatted blob endpoint URL. | ||
blobEndPointURL = Utils.getBlobEP(blobEndPointURL); | ||
StorageAccountInfo storageAccount = new StorageAccountInfo( | ||
was_storageAccName, was_storageAccountKey, blobEndPointURL); | ||
was_storageAccName, was_storageAccountKey, blobEndPointURL, cdnEndPointURL); | ||
AzureUtils.validateStorageAccount(storageAccount, false); | ||
} catch (Exception e) { | ||
return FormValidation.error(e, "Error : " + e.getMessage()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.