How do I configure Jenkins plugin updates to use the secure HTTPS site

Issue

  • Is there a way to force the plugin updater to use the HTTPS version of the update site (https://jenkins-updates.cloudbees.com/update-center.json)?
  • I added the HTTPS site in the “Update Site” field of the advanced page in Plugin Manager, but when I run “check now” it still appears to be referencing the non-HTTPS version of the site

Environment

  • CloudBees Jenkins Enterprise
  • CloudBees Jenkins Operations Center

Resolution

If you want to remove the default update site (the non-secure HTTP endpoint), please follow these steps:

1) Stop Jenkins service

2) Do a backup of the file JENKINS_HOME/hudson.model.UpdateCenter.xml

3) Edit this file and remove the jenkins-enterprise node

4) Add this parameter at JAVA_OPTS:

-Dcom.cloudbees.jenkins.plugins.license.nectar.CloudBeesUpdateSite.disableAutoAdd=true

5) Start Jenkins service

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.