Using local mirror of plugins - UI x jenkins-plugin-cli

Greetings.

I have done a local mirror of jenkins in my env.
I changed the envs for my container so jenkins-plugin-cli wouldwork properly. And it worked. Downloaded all plugins from my local server.
ENV:

JENKINS_UC_DOWNLOAD_URL
JENKINS_UC
JENKINS_PLUGIN_INFO

But, in user interface, even when changing in the :
Manage Jenkins → Plugins → Advanced Setting → Update Site (URL) to the mirror (containing the .json file), it still downloads from the official jenkins repo. Is there a way to change that ?

Thanks,
Costa

The json files contain links from where to download the plugins. So you will need to adjust those to your own site.

You’ll need to implement your own Jenkins update center. Mirroring the existing site is not enough, as noted by @mawinter69 .