How to change Jenkins mirror, when proxy forbids keyword ftp How to change Jenkins mirror, when proxy forbids keyword ftp jenkins jenkins

How to change Jenkins mirror, when proxy forbids keyword ftp


I found a workaround:

  1. Download the plugin direct from http://mirrors.jenkins-ci.org/plugins/gitlab-plugin/latest/

  2. Upload the hpi-file into jenkins. There is anupload field in http://host:8080/pluginManager/advanced.

But this is only a workaround. I would like to get an answer to my question: "Is there a way to choose or disable the mirror when downloading plugins for jenkins?"


By default Jenkins is using http://updates.jenkins-ci.org/update-center.json as a "load balancer" url which forwards you to the closest geographical mirror json (i.e. http://ftp-nyc.osuosl.org/pub/jenkins/updates/current/update-center.json for me). What you can do is use your own json file for that purpose by installing this plugin and host json file anywhere you want (i.e. internally):

https://wiki.jenkins.io/display/JENKINS/UpdateSites+Manager+plugin

enter image description here