jenkinsci / jenkinsci/plugin-installation-manager-tool
Add parameter to change archive repository URL and check Jenkins version against archive repositories
- Dominant language
- Java
- Stars
- 463
- Forks
- 228
- Avg merge
- 31m
- Merged PRs (30d)
- 15
Description
### What feature do you want to see added?
Currently, the Plugin Installation Manager Tool uses a hardcoded [mirror fallback base URL](https://github.com/jenkinsci/plugin-installation-manager-tool/blob/d233db64b11348d33743a7b1ca8b15255134fc6a/plugin-management-library/src/main/java/io/jenkins/tools/pluginmanager/impl/PluginManager.java#L123) for archived plugins (https://archives.jenkins.io/) in the `PluginManager` class. In environments with proxies, such as [Sonatype Nexus Repository](https://www.sonatype.com/products/sonatype-nexus-repository), downloading archived plugin versions becomes problematic because the requests cannot be routed through the proxy.
It would be useful to allow users to specify a custom URL for the archived repository.
Additionally, we propose adding a parameter that allows the tool to check whether the selected Jenkins version corresponds to the archived repositories. If the version is found in the archive, the tool should use the update center from the archive repository; otherwise, it should fall back to the default update center.
#### Suggested Changes:
Custom URL for Archive Repository: Add a command-line parameter and/or environment variable to specify the custom URL for the archived repository.
Version Check for Archive Compatibility: Introduce a parameter that checks if the selected Jenkins version corresponds to an archived repository. If the version is not archived, the tool should automatically fall back to the default update center.
These changes will make the Plugin Installation Manager Tool more adaptable to different environments, enabling it to work with archive repository mirrors and through proxies.
### Upstream changes
_No response_
### Are you interested in contributing this feature?
Yes, I am interested in contributing to this feature.
Contributor guide
Assessment
This issue has not been assessed yet.