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

Oracle JDK 10 not available anymore - Oracle JDK 11 is not free

      The automatic installation of Tool JDK 10 failed today for us with a 404. It seems Oracle JDK 10 not available anymore at all. And Java 11 cannot be used in production due to new licences. No JDK 11 is available in Jenkins java.sun.com JDK Tool installer.

      https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html

      I guess the tool installer should be changed to use http://openjdk.java.net/projects/jdk/11/ (downloaded from http://jdk.java.net/11/).

      Acceptance criteria

      • a JDK 11 is proposed as download
      • ideally, see if we can still propose JDK10,
      • and JDK12

          [JENKINS-54305] Oracle JDK 10 not available anymore - Oracle JDK 11 is not free

          More and more inclined to say this feature anyway was nice for demos, but for real usage should not be used. Because it means your internal servers are constantly downloading binaries from outside.

          • It can end up with your company network being banned for excessive bandwidth consumption
          • in case of public network glitch, all your builds start to die

          Baptiste Mathus added a comment - More and more inclined to say this feature anyway was nice for demos, but for real usage should not be used. Because it means your internal servers are constantly downloading binaries from outside. It can end up with your company network being banned for excessive bandwidth consumption in case of public network glitch, all your builds start to die

          benoit guerin added a comment -

          Files downloaded from oracle.com are cached in a folder on the master (~/cache/jdks) ...

          Maybe you can ask the community if this feature is used / usefull or not.

          benoit guerin added a comment - Files downloaded from oracle.com are cached in a folder on the master ( ~/cache/jdks ) ... Maybe you can ask the community if this feature is used / usefull or not.

          Given your comment, I think we are talking about two different things: this plugin allows people to:

          • either use a pre-filled combo, select JDK, and have Jenkins automatically download it from oracle.com.
          • or the other way (which should the strongly recommended one [1]) is to do it very similarly, but define the JDK name, a custom URL (usually pointing to some internal webserver, ideally some binary repository like Nexus or Artifactory where you'll have uploaded some jdk.zip yourself), and then from a Jenkins user standpoint it looks absolutely the same.
            The huge difference is that using the latter strategy you don't risk to block your whole build infra because your Internet access has a temporary network glitch, or a more durable stop if oracle.com starts banning your IP, after getting annoyed that you keep downloading the same thing dozens or hundreds of times a day from their servers (bandwidth does cost some money ).

          I hope this clarifies.

          [1] Unfortunately, I didn't check, but I don't think this is currently correctly documented. We should be able to fix this soon I hope. (PRs welcome, though . Happy to help anyone doing this).

          Baptiste Mathus added a comment - Given your comment, I think we are talking about two different things: this plugin allows people to: either use a pre-filled combo, select JDK, and have Jenkins automatically download it from oracle.com. or the other way (which should the strongly recommended one [1] ) is to do it very similarly, but define the JDK name, a custom URL (usually pointing to some internal webserver, ideally some binary repository like Nexus or Artifactory where you'll have uploaded some jdk.zip yourself), and then from a Jenkins user standpoint it looks absolutely the same. The huge difference is that using the latter strategy you don't risk to block your whole build infra because your Internet access has a temporary network glitch, or a more durable stop if oracle.com starts banning your IP, after getting annoyed that you keep downloading the same thing dozens or hundreds of times a day from their servers (bandwidth does cost some money ). I hope this clarifies. [1] Unfortunately, I didn't check, but I don't think this is currently correctly documented. We should be able to fix this soon I hope. (PRs welcome, though . Happy to help anyone doing this).

          Devin Nusbaum added a comment -

          batmat I added this warning when I split the plugin from core, but it could probably be updated to be more accurate and put in a more visible location so that you don't have to click into the help text to see it.

          Devin Nusbaum added a comment - batmat I added this warning when I split the plugin from core, but it could probably be updated to be more accurate and put in a more visible location so that you don't have to click into the help text to see it.

          dnusbaum awesome! Yes, so then I guess we'll see possibly just make a pass to see if/how we can make this even more visible. But that's already great. Thanks!

          Baptiste Mathus added a comment - dnusbaum awesome! Yes, so then I guess we'll see possibly just make a pass to see if/how we can make this even more visible. But that's already great. Thanks!

          Sverre Moe added a comment -

          An installer for JDK from AdoptOpenJDK would be a welcoming addition.

          The Oracle OpenJDK 11 LTS builds will only receive updates for 6 months, while AdoptOpenJDK will commit to providing builds until LTS EOL.

          OpenJDK provides a new feature release every six months, and a maintenance/security update based upon each active release every three months. We will follow this schedule for publishing binary releases from AdoptOpenJDK to ensure you get the latest, most secure builds.

          In addition, every three years one feature release will be designated as the Long Term Supported (LTS) release. We will produce LTS releases for at least four years. This assurance will allow you to stay on a well-defined code stream, and give you time to migrate to the next, new, stable, LTS release when it becomes available.

          Though we still need the Oracle JDK Installer, for those who still use an older JDK.
          We have some legacy application using JDK 1.6 and JDK 1.7.

          I like batmat suggestion of Using a repository manager like Nexus to get the JDK. Then you could get the JDK from your preferred source.

          Sverre Moe added a comment - An installer for JDK from AdoptOpenJDK would be a welcoming addition. The Oracle OpenJDK 11 LTS builds will only receive updates for 6 months, while AdoptOpenJDK will commit to providing builds until LTS EOL. OpenJDK provides a new feature release every six months, and a maintenance/security update based upon each active release every three months. We will follow this schedule for publishing binary releases from AdoptOpenJDK to ensure you get the latest, most secure builds. In addition, every three years one feature release will be designated as the Long Term Supported (LTS) release. We will produce LTS releases for at least four years. This assurance will allow you to stay on a well-defined code stream, and give you time to migrate to the next, new, stable, LTS release when it becomes available. Though we still need the Oracle JDK Installer, for those who still use an older JDK. We have some legacy application using JDK 1.6 and JDK 1.7. I like batmat suggestion of Using a repository manager like Nexus to get the JDK. Then you could get the JDK from your preferred source.

          karianna added a comment -

          https://api.adoptopenjdk.net is the location you want to pull in versions via our API.  Let me know if you have any issues.

          karianna added a comment - https://api.adoptopenjdk.net  is the location you want to pull in versions via our API.  Let me know if you have any issues.

          Oleg Nenashev added a comment -

          Changed to the "Improvement" according to the discussion

          Oleg Nenashev added a comment - Changed to the "Improvement" according to the discussion

          I've created an installer plugin for AdoptOpenJDK: https://github.com/jenkinsci/adoptopenjdk-plugin

          The initial release is still pending though as crawler metadata is not updating: INFRA-2111

          I have also opened a [PR|https://github.com/jenkinsci/jdk-tool-plugin/pull/5] that adds a warning text to the Oracle JDK installer about the license change and I've also opened a [PR|https://github.com/jenkins-infra/crawler/pull/82] that restores Java 10 and adds Java 11 and Java 12.

          Mads Mohr Christensen added a comment - I've created an installer plugin for AdoptOpenJDK:  https://github.com/jenkinsci/adoptopenjdk-plugin The initial release is still pending though as crawler metadata is not updating: INFRA-2111 I have also opened a [PR| https://github.com/jenkinsci/jdk-tool-plugin/pull/5 ] that adds a warning text to the Oracle JDK installer about the license change and I've also opened a [PR| https://github.com/jenkins-infra/crawler/pull/82 ] that restores Java 10 and adds Java 11 and Java 12.

          Tim Jacomb added a comment -

          resolved by openjdk install plugin

          Tim Jacomb added a comment - resolved by openjdk install plugin

            Unassigned Unassigned
            marcus_phi Marcus Philip
            Votes:
            9 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: