Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-31728

JDK Home not set when only one JDK is configured in Jenkins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • core
    • None

      When only one JDK is configured in Jenkins, the drop down for selecting a JDK does not appear. This kind of makes sense because there is no choice to be made, thought it may be helpful see which JDK you are using.

      The problem happens when there is a different JRE/JDK used to launch Jenkins than single one configured for Jenkins. A job will pick up the JAVA_HOME from the JRE that launched Jenkins, not the one that is actually configured in Jenkins. If you have 2 JDKs configured in Jenkins and one of them is selected, the job gets the JAVA_HOME from the selected JDK as expected.

            Unassigned Unassigned
            jeffastorey Jeff Storey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: