• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • ssh-slaves-plugin
    • None
    • Jenkins 2.54, running via the jenkins:2.54-alpine docker image. CentOS7 slaves with no pre-installed JDK.

      When Jenkins starts remote slaves via SSH, it does not detect an installed java version and proceeds to download and install JDK7, which it no longer works with. This prevents the slaves from starting and Jenkins from working.

      I have configured a Java 1.8 JDK in the global tool config, but that seems to have made no difference.

      After removing both jdk.sh and jdk from $JENKINS_HOME on the slaves, the slave still installs JDK7.

      I have rolled back to v2.53, which still works fine.

      For reference, one of the slaves has JDK1.8.0 installed via the OS and that slave connects and runs ok.

      Edit: I changed the component to ssh-slaves-plugin, as that seems to be the culprit.

          [JENKINS-43481] Jenkins 2.54 still downloads JDK1.7

          Peter Lieverdink created issue -
          Peter Lieverdink made changes -
          Description Original: When Jenkins starts remote slaves via SSH, it does not detect an installed java version and proceeds to download and install JDK7, which it no longer works with. This prevents the slaves from starting and Jenkins from working.

          I have configured a Java 1.8 JDK in the global tool config, but that seems to have made no difference.

          After removing both jdk.sh and jdk from $JENKINS_HOME on the slaves, the slave still installs JDK7.

          I have rolled back to v2.53, which still works fine.

          For reference, one of the slaves has JDK1.8.0 installed via the OS and *that* slave connects and runs fine.
          New: When Jenkins starts remote slaves via SSH, it does not detect an installed java version and proceeds to download and install JDK7, which it no longer works with. This prevents the slaves from starting and Jenkins from working.

          I have configured a Java 1.8 JDK in the global tool config, but that seems to have made no difference.

          After removing both jdk.sh and jdk from $JENKINS_HOME on the slaves, the slave still installs JDK7.

          I have rolled back to v2.53, which still works fine.

          For reference, one of the slaves has JDK1.8.0 installed via the OS and *that* slave connects and runs ok.
          Peter Lieverdink made changes -
          Component/s New: ssh-slaves-plugin [ 15578 ]
          Component/s Original: core [ 15593 ]
          Description Original: When Jenkins starts remote slaves via SSH, it does not detect an installed java version and proceeds to download and install JDK7, which it no longer works with. This prevents the slaves from starting and Jenkins from working.

          I have configured a Java 1.8 JDK in the global tool config, but that seems to have made no difference.

          After removing both jdk.sh and jdk from $JENKINS_HOME on the slaves, the slave still installs JDK7.

          I have rolled back to v2.53, which still works fine.

          For reference, one of the slaves has JDK1.8.0 installed via the OS and *that* slave connects and runs ok.
          New: When Jenkins starts remote slaves via SSH, it does not detect an installed java version and proceeds to download and install JDK7, which it no longer works with. This prevents the slaves from starting and Jenkins from working.

          I have configured a Java 1.8 JDK in the global tool config, but that seems to have made no difference.

          After removing both jdk.sh and jdk from $JENKINS_HOME on the slaves, the slave still installs JDK7.

          I have rolled back to v2.53, which still works fine.

          For reference, one of the slaves has JDK1.8.0 installed via the OS and *that* slave connects and runs ok.

          Edit: I changed the component to ssh-slaves-plugin, as that seems to be the culprit.
          Oleg Nenashev made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]

          Daniel Beck added a comment -

          Right, Jenkins (well, SSH Slaves) only downloads a Java for the agent if there's no compatible Java detected. So workaround is to install a JRE 8.

          Daniel Beck added a comment - Right, Jenkins (well, SSH Slaves) only downloads a Java for the agent if there's no compatible Java detected. So workaround is to install a JRE 8.

          Oleg Nenashev added a comment -

          So there are several pending fixes like https://github.com/jenkinsci/ssh-slaves-plugin/pull/43, which could help. We just need a hero, who would integrate the stuff

          Oleg Nenashev added a comment - So there are several pending fixes like https://github.com/jenkinsci/ssh-slaves-plugin/pull/43 , which could help. We just need a hero, who would integrate the stuff

          Not assigning myself right now, to leave room for possible people to tackle this quicker, but I plan to look into it soonish. Also, I'm going to lower the priority as as Daniel explains there's an easy workaround.

          Baptiste Mathus added a comment - Not assigning myself right now, to leave room for possible people to tackle this quicker, but I plan to look into it soonish. Also, I'm going to lower the priority as as Daniel explains there's an easy workaround.
          Baptiste Mathus made changes -
          Priority Original: Critical [ 2 ] New: Major [ 3 ]
          Oleg Nenashev made changes -
          Epic Link New: JENKINS-43500 [ 180815 ]
          Sascha Szott made changes -
          Link New: This issue duplicates JENKINS-43492 [ JENKINS-43492 ]

            jglick Jesse Glick
            cafuego Peter Lieverdink
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: