I use & wget -m & # 39; to mirror the latest Jenkins plugins and the update-center.json file to my local repository. My goal is for the URL to point to my local repo. If I update Jenkins plugins, I can manage Jenkins -> Manage plugins -> Get updates from my local plugins repo. What I did was:
Go to Manage Jenkins -> Manage Plugins -> Advanced, and point the URL of the Update Center to http: //localRepo/update-center.json
Modify my local update-center.json file so that the plugins download URL points to http: //localRepo/plugins/xx.hpi. For example, change the following in update-center.json:
"title": "Git Client", "url": "http://updates.jenkins-ci.org/download/plugins/git-client/x.x/git-client.hpi
"title":"Git Client", "url":"http://localRepo/plugins/git-client.hpi
After all this was done, I clicked "Submit" and "Check Now" under "Manage Jenkins" -> "Manage Plugins" -> "Advanced". The following error message was displayed:
There were errors checking the update sites: SHA-512digest mismatch: expected=xxxxxxxxxx; update site xx;default...
So my questions are:
1. With which file does the system compare my local checksum update-center.json?
2. I have generated with openssl key and certificate. How do I use the CRT file to self-sign the locally modified update-center.json file? Do I save a .crt file under $ Jenkins_HOME / and change a configuration file to point to a .crt file?