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

Manually install jdk for ssh-slaves plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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?

        Attachments

          Issue Links

            Activity

            Hide
            mkostrikin 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
            
            Show
            mkostrikin 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
            Hide
            ifernandezcalvo 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.

            Show
            ifernandezcalvo 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.

              People

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

                Dates

                Created:
                Updated:
                Resolved: