Is there a way to allow a user to install a custom jdk on a slave machine (i.e. let the users pick a specific version from a list. Currently the jdk is hard coded into the plugin, and enforcing a specific java version would not be good (What if my slaves need have java 7 or java 8?). An example would be that java 6 u45 was the last "Open source" version of java 6, however there is a closed source version u60 which users would like to be given the option to install. Would it be possible to have a drop down to install a specific version or upload the file automatically?

          [JENKINS-20495] Manually install jdk for ssh-slaves plugin

          Steven Christou created issue -
          Niels Wegner made changes -
          Link New: This issue is related to JENKINS-28231 [ JENKINS-28231 ]

          Make sure on default path(s) java is available, ssh-slave tries them before setup own jdk.

          [06/24/15 03:35:09] [SSH] Checking java version of java
          Couldn't figure out the Java version of java
          bash: java: command not found
          
          [06/24/15 03:35:09] [SSH] Checking java version of /usr/bin/java
          Couldn't figure out the Java version of /usr/bin/java
          bash: /usr/bin/java: No such file or directory
          
          [06/24/15 03:35:09] [SSH] Checking java version of /usr/java/default/bin/java
          Couldn't figure out the Java version of /usr/java/default/bin/java
          bash: /usr/java/default/bin/java: No such file or directory
          
          [06/24/15 03:35:09] [SSH] Checking java version of /usr/java/latest/bin/java
          Couldn't figure out the Java version of /usr/java/latest/bin/java
          bash: /usr/java/latest/bin/java: No such file or directory
          
          [06/24/15 03:35:09] [SSH] Checking java version of /usr/local/bin/java
          Couldn't figure out the Java version of /usr/local/bin/java
          bash: /usr/local/bin/java: No such file or directory
          
          [06/24/15 03:35:09] [SSH] Checking java version of /usr/local/java/bin/java
          Couldn't figure out the Java version of /usr/local/java/bin/java
          bash: /usr/local/java/bin/java: No such file or directory
          
          [06/24/15 03:35:09] [SSH] Checking java version of /home/jenkins/jdk/bin/java
          Couldn't figure out the Java version of /home/jenkins/jdk/bin/java
          bash: /home/jenkins/jdk/bin/java: No such file or directory
          

          Maxim Kostrikin added a comment - Make sure on default path(s) java is available, ssh-slave tries them before setup own jdk. [06/24/15 03:35:09] [SSH] Checking java version of java Couldn't figure out the Java version of java bash: java: command not found [06/24/15 03:35:09] [SSH] Checking java version of /usr/bin/java Couldn't figure out the Java version of /usr/bin/java bash: /usr/bin/java: No such file or directory [06/24/15 03:35:09] [SSH] Checking java version of /usr/java/default/bin/java Couldn't figure out the Java version of /usr/java/default/bin/java bash: /usr/java/default/bin/java: No such file or directory [06/24/15 03:35:09] [SSH] Checking java version of /usr/java/latest/bin/java Couldn't figure out the Java version of /usr/java/latest/bin/java bash: /usr/java/latest/bin/java: No such file or directory [06/24/15 03:35:09] [SSH] Checking java version of /usr/local/bin/java Couldn't figure out the Java version of /usr/local/bin/java bash: /usr/local/bin/java: No such file or directory [06/24/15 03:35:09] [SSH] Checking java version of /usr/local/java/bin/java Couldn't figure out the Java version of /usr/local/java/bin/java bash: /usr/local/java/bin/java: No such file or directory [06/24/15 03:35:09] [SSH] Checking java version of /home/jenkins/jdk/bin/java Couldn't figure out the Java version of /home/jenkins/jdk/bin/java bash: /home/jenkins/jdk/bin/java: No such file or directory
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 152020 ] New: JNJira + In-Review [ 178156 ]
          Ivan Fernandez Calvo made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ] New: Ivan Fernandez Calvo [ ifernandezcalvo ]

          We will remove the JDK installed from the plugin, so it is required to have a JDK/JRE installed on the agent.

          Ivan Fernandez Calvo added a comment - We will remove the JDK installed from the plugin, so it is required to have a JDK/JRE installed on the agent.
          Ivan Fernandez Calvo made changes -
          Link New: This issue is related to JENKINS-47586 [ JENKINS-47586 ]
          Ivan Fernandez Calvo made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            ifernandezcalvo Ivan Fernandez Calvo
            schristou Steven Christou
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: