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

Take advantage of JDK auto installation if java is not found

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ssh-slaves-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: Windows XP
    • Similar Issues:

      Description

      If Java is not found, use the JDK auto-installation code to install a reasonable
      version of Java.

      A change has to be made to the JDK installer code to enable this use case, since
      when this happens we don't have the slave agent running yet.

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          Would be better to install just the JRE, since that is much smaller and all the
          slave necessarily needs. Could try the links on

          http://java.com/en/download/manual.jsp

          rather than the somewhat baroque negotiations needed to download a JDK from
          java.sun.com.

          Even if some projects are Java projects and need a JDK, they might want a
          specific version, and this can be handled using the normal auto-install GUI. To
          run a slave, we should just install the latest Java 6 JRE.

          Show
          jglick Jesse Glick added a comment - Would be better to install just the JRE, since that is much smaller and all the slave necessarily needs. Could try the links on http://java.com/en/download/manual.jsp rather than the somewhat baroque negotiations needed to download a JDK from java.sun.com. Even if some projects are Java projects and need a JDK, they might want a specific version, and this can be handled using the normal auto-install GUI. To run a slave, we should just install the latest Java 6 JRE.
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Not a defect.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Not a defect.
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          This has been implemented for some time (except that it installs JDK, not JRE.)

          Show
          kohsuke Kohsuke Kawaguchi added a comment - This has been implemented for some time (except that it installs JDK, not JRE.)
          Hide
          gjansen Gerwin Jansen added a comment -

          How can I disable this feature? I want to install the JRE used by Jenkins slave myself. If java is not found, I should get an error.

          Show
          gjansen Gerwin Jansen added a comment - How can I disable this feature? I want to install the JRE used by Jenkins slave myself. If java is not found, I should get an error.
          Hide
          sogabe sogabe added a comment -

          disable auto instalttion.

          Show
          sogabe sogabe added a comment - disable auto instalttion.

            People

            • Assignee:
              stephenconnolly Stephen Connolly
              Reporter:
              kohsuke Kohsuke Kawaguchi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: