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

JDK selection is hidden even when a JDK is configured

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      "default" JDK is the one present in user PATH - let's say JDK6
      if I want to use an alternative JDK5, I declare it on system configuration
      But I still can't edit my project configuration to select JDK and it still run with JDK6
      I need to declare a 2nd JDK so that the select box appears and I can configure my JDK5 build.

      I suggest to deprecate support for "Default" JDK, as this is confusing and dependent on host system configuration.

      To ensure backward compatibility, jenkins could detect at startup jobs that don't have a <JDK> element in config and automatically create a "System" JDK in global configuration based on System.getProperty('java.home').

        Attachments

          Issue Links

            Activity

            Hide
            robbit Robert Dahlström added a comment - - edited

            Just ran into this as well and a bit of googling led me here. However, my wants are slightly different: I'd also like an option to tell Jenkins to explicitly use the System provided JDK. Mainly because the Jenkins I currently maintain should use the same JDK/JRE we have in production and we maintain the JDK/JRE with puppet, outside of the Jenkins eco-system.

            I do agree that the current way to work with JDK's in Jenkins is a bit confusing and it does not tie all plugins together (maven job with sonar's 'inherit from job' when the job's JDK is 'Default' is one such example).

            Show
            robbit Robert Dahlström added a comment - - edited Just ran into this as well and a bit of googling led me here. However, my wants are slightly different: I'd also like an option to tell Jenkins to explicitly use the System provided JDK. Mainly because the Jenkins I currently maintain should use the same JDK/JRE we have in production and we maintain the JDK/JRE with puppet, outside of the Jenkins eco-system. I do agree that the current way to work with JDK's in Jenkins is a bit confusing and it does not tie all plugins together (maven job with sonar's 'inherit from job' when the job's JDK is 'Default' is one such example).
            Hide
            signus Matthew Sexton added a comment -

            I can confirm this is still present in v2.19.

            I noticed sometime after 2.17 that all of my JDK tool installations were gone, and that the UI selection for the JDK for all maven jobs was no longer visible, but was still set in the config.xml.

            Show
            signus Matthew Sexton added a comment - I can confirm this is still present in v2.19. I noticed sometime after 2.17 that all of my JDK tool installations were gone, and that the UI selection for the JDK for all maven jobs was no longer visible, but was still set in the config.xml.
            Hide
            danielbeck Daniel Beck added a comment -

            of my JDK tool installations were gone, and that the UI selection for the JDK for all maven jobs was no longer visible

            Moved to /configureTools

            Show
            danielbeck Daniel Beck added a comment - of my JDK tool installations were gone, and that the UI selection for the JDK for all maven jobs was no longer visible Moved to /configureTools
            Hide
            signus Matthew Sexton added a comment -

            Correct, however I am confirming that the JDK selection from a maven job is not visible even though it is specified in the job's configuration. That was a side-effect I noticed at the same time (may or may not be related).

            Show
            signus Matthew Sexton added a comment - Correct, however I am confirming that the JDK selection from a maven job is not visible even though it is specified in the job's configuration. That was a side-effect I noticed at the same time (may or may not be related).
            Hide
            danielbeck Daniel Beck added a comment -

            How many JDKs are configured globally?

            Show
            danielbeck Daniel Beck added a comment - How many JDKs are configured globally?

              People

              • Assignee:
                Unassigned
                Reporter:
                ndeloof Nicolas De Loof
              • Votes:
                10 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated: