JDK Installer Not Showing Dropdown List

Issue

  • JDK Installer for java.sun.com displays a text field instead of a dropdown list
  • Cannot use JDK Installer

Environment

  • CloudBees Jenkins Enterprise

Root cause

This is a problems of the basic function of the update center. The update center does not fetch the latest data file for the JDK Installer.

Resolution

This can be fixed inside a running instance of CJE.

Delete the failing JDK installers

  1. Got to Manage Jenkins/Configure System
  2. Remove the JDK installer
    image-1.png

Force Jenkins to update the JDK Installer data file:

  1. Go to Manage Jenkins/Script Console
  2. Copy/Paste and Run this groovy script that will update the data file for tools and installers:
     hudson.model.DownloadService.signatureCheck = false
     hudson.model.DownloadService.Downloadable.get("hudson.tools.JDKInstaller").updateNow()
     hudson.model.DownloadService.signatureCheck = true
     return
    
  3. The script might take few seconds to finish. A label Result appears below the Text Area indicating that the script has run.
    image-2.png

    This line should appears in the log as well:

    ...
    INFO: Obtained the updated data file for hudson.tools.JDKInstaller
    ...
    
  4. Go to Manage Jenkins/Configure System

  5. Add a JDK Installation and select the java.sun.com JDK Installer. There should be a dropdown list.
    image-3.png
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.