Skip to content
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

Merged
merged 8 commits into from
Dec 13, 2023

Conversation

Minreaux
Copy link
Contributor

@Minreaux Minreaux commented Nov 28, 2023

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:

  • Updated Jenkins version and bom to 2.387
  • Fixed some warnings with the pom.xml

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

@Minreaux
Copy link
Contributor Author

Minreaux commented Nov 28, 2023

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.

@Minreaux Minreaux marked this pull request as ready for review December 13, 2023 17:24
@Minreaux
Copy link
Contributor Author

Tagging maintainer for review @timja.

@timja timja added the enhancement New feature or request label Dec 13, 2023
Copy link
Member

@timja timja left a 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

@timja timja enabled auto-merge (squash) December 13, 2023 20:23
@timja timja merged commit 2b4c2c2 into jenkinsci:master Dec 13, 2023
13 checks passed
@Minreaux Minreaux deleted the add-cdn-support branch December 13, 2023 21:01
@Minreaux
Copy link
Contributor Author

Thanks for all your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants