• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • ssh-slaves-plugin
    • None
    • Jenkins 2.46.1, ssh-slaves-plugin 1.17
    • ssh-slaves-1.31.1

      SSH slave as openssk jdk version 8.0 and 9.0 installed.

      I have the global tools location set for JDK to /usr/lib/jbm/java-8-openjdk-amd64

      I have the tools location and the env. variable JAVA_HOME set on the node config as well.

      When launching the agent, it shows:

      [04/21/17 22:32:00] [SSH] Checking java version of java
      [04/21/17 22:32:00] [SSH] java -version returned 9-internal.

       

      Previous issue here: JENKINS-5412   (code was checked in and still in the repo)  Is there a change in behavior that makes this fix no longer work?

       

          [JENKINS-43779] Plugin not respecting node JAVA_HOME

          In JENKINS-47586 we changed the order of resolution of the java versions, the new one is the following:

          • Agent working directory - WORKING_DIRECTORY/jdk/bin/java
          • JAVA_HOME environment variable - JAVA_HOME/bin/java
          • JDK tools configured on Jenkins - JDK_TOOLS_LOCATIONS/bin/java
          • PATH
          • "/usr/bin/java"
          • "/usr/java/default/bin/java"
          • "/usr/java/latest/bin/java"
          • "/usr/local/bin/java"
          • "/usr/local/java/bin/java

          Ivan Fernandez Calvo added a comment - In JENKINS-47586 we changed the order of resolution of the java versions, the new one is the following: Agent working directory - WORKING_DIRECTORY/jdk/bin/java JAVA_HOME environment variable - JAVA_HOME/bin/java JDK tools configured on Jenkins - JDK_TOOLS_LOCATIONS/bin/java PATH "/usr/bin/java" "/usr/java/default/bin/java" "/usr/java/latest/bin/java" "/usr/local/bin/java" "/usr/local/java/bin/java

            ifernandezcalvo Ivan Fernandez Calvo
            johnar John Arnold
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: