plugin-installation-manager-tool
plugin-installation-manager-tool copied to clipboard
Log the suggested mirrors for download
Feature Request
We often get reports of plugins that fail to download, and from running the install process in --verbose
mode we can see where it has attempted to download a plugin from - this is often surprising as builds taking place in the US often appear to be redirected to EU/Japan.
Could we enhance the log output to show the recommended download location and all the extra "links", like a log representation of the ?mirrorlist
endpoint.
Hello, everyone I'd like to resolve this issue, but there's a question
How can I get the mirror list ? Is this ?mirrorlist
endpoint already exist?
Better late than never. Yes, get.jenkins.io provides mirror stats for any download URL. E.g. https://get.jenkins.io/war/2.316/jenkins.war?mirrorstats
Haha, I got it. Thanks :)
Hi @oleg-nenashev I see that the mirrorstats for plugins are same, can we get the sites from the mirrorstats endpoint and store it and print in logs for this issue. I am willing to take up this task. Please let me know if this approach is fine
Hi @oleg-nenashev I see that the mirrorstats for plugins are same, can we get the sites from the mirrorstats endpoint and store it and print in logs for this issue. I am willing to take up this task. Please let me know if this approach is fine
I believe that the reason @garethjevans recommended mirrorlist
rather than mirrorstats
is because mirrorlist
reports the priority of the mirror for the user. The mirrorstats
page shows the data transfer volume but does not give any indication of the priority of each download site for that user.
For comparison, look at the mirrorlist pages:
- https://updates.jenkins.io/latest/git.hpi?mirrorlist
- https://get.jenkins.io/plugins/git/5.2.0/git.hpi?mirrorlist
The mirrorstats page does not include the mirror priority
- https://get.jenkins.io/plugins/git/5.2.0/git.hpi?mirrorstats