-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Azure CDN endpoint URL #85
Conversation
This is blocked until jenkinsci/azure-storage-plugin#280 is submitted; will need to update Azure Storage plugin version dependency in this PR once that PR is submitted. |
…zure CDN URL changes
Tagging maintainer for review @timja. |
src/test/java/com/microsoft/jenkins/artifactmanager/IntegrationTests/IntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/microsoft/jenkins/artifactmanager/IntegrationTests/IntegrationTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Not tested manually but looks simple enough
src/test/java/com/microsoft/jenkins/artifactmanager/IntegrationTests/IntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/microsoft/jenkins/artifactmanager/IntegrationTests/IntegrationTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/microsoft/jenkins/artifactmanager/IntegrationTests/IntegrationTest.java
Outdated
Show resolved
Hide resolved
Thanks for all your help! |
Resolves #84
Description
These changes add support for an Azure CDN endpoint URL into the Azure Artifact Manager plugin, which will pull the Azure CDN endpoint URL from the configured Azure Storage Account, if and only if the Azure CDN endpoint URL is configured, and then distribute artifacts in Jenkins using the Azure CDN URL instead of the Azure Storage Account blob URL.
Otherwise, it will use the Azure Storage Account blob URL like normal. This PR is dependent on the upstream changes for the Azure Storage plugin here: jenkinsci/azure-storage-plugin#280
I also fixed some issues I discovered while working on this so that I could get the plugin building locally without issue and to ensure that the Azure Storage and Azure Artifact Manager plugins had the same Jenkins version as a minimum dependency:
Testing done
This change was tested locally in VSCode configured for Java/Jenkins development. I updated the JUnit tests to account for this new feature. I tested this locally using the
mvn verify
command.Since these changes are dependent on the upstream changes I've made to the Azure Storage plugin, I tested these changes in a local instance of Jenkins using the
mvn hpi:run
command using a local version of the Azure Storage plugin containing the changes from this PR: jenkinsci/azure-storage-plugin#280.Submitter checklist