• Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • jdk-tool-plugin
    • None

      We've noted that some of the JDK 8 artifacts return 404.

      For example:

      Installing JDK jdk-8u202-oth-JPR 
      Downloading JDK from https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-linux-x64.tar.gz 
      FATAL: command execution failed 
      java.io.IOException: Failed to request https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-linux-x64.tar.gz?AuthParam=XXXXX exit code=404 
      at hudson.tools.JDKInstaller.locate(JDKInstaller.java:492) 
      at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:150) 
      at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:72) 
      at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109) 
      at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206) 
      at hudson.model.JDK.forNode(JDK.java:148) 
      at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:341) 
      at hudson.model.Run.getEnvironment(Run.java:2374) 
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:872) 
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:102) 
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66) 
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) 
      at hudson.model.Build$BuildExecution.build(Build.java:206) 
      at hudson.model.Build$BuildExecution.doRun(Build.java:163) 
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) 
      at hudson.model.Run.execute(Run.java:1816) 
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
      at hudson.model.ResourceController.execute(ResourceController.java:97) 
      at hudson.model.Executor.run(Executor.java:429) 
      Build step 'Execute shell' marked build as failure 
      Finished: FAILURE
      

      We've noticed that JDK 7 artifacts seem fine.

      We've noticed that some JDK 8 artifacts still work. 8u202 and 8u201 give 404. 8u192 seem to download just fine (for example).
       

          [JENKINS-57090] Some Java 8 artifacts return 404 on download

          Devin Nusbaum added a comment - - edited

          This is probably related to Oracle changing the license for Java 8 as of the April 16, 2019 release of JDK 8u211 and JDK 8u212 (or maybe for earlier versions, but I'm not sure). In short, using Oracle JDK 8u211 and newer for non-personal use cases is a violation of the license agreement unless you are paying Oracle for some other license, see the warning here for details. Using the JDK inside of Jenkins probably does not qualify as personal use according to the FAQ here.

          So, while maybe some crawler or plugin update could fix this, I don't think it would make sense to do so. You should switch to using OpenJDK builds from your OS package manager or something like https://adoptopenjdk.net/. Updating this plugin to download from AdoptOpenJDK sounds like a good RFE, but I have no plans to work on it.

          Devin Nusbaum added a comment - - edited This is probably related to Oracle changing the license for Java 8 as of the April 16, 2019 release of JDK 8u211 and JDK 8u212 (or maybe for earlier versions, but I'm not sure). In short, using Oracle JDK 8u211 and newer for non-personal use cases is a violation of the license agreement unless you are paying Oracle for some other license, see the warning here for details. Using the JDK inside of Jenkins probably does not qualify as personal use according to the FAQ here . So, while maybe some crawler or plugin update could fix this, I don't think it would make sense to do so. You should switch to using OpenJDK builds from your OS package manager or something like https://adoptopenjdk.net/ . Updating this plugin to download from AdoptOpenJDK sounds like a good RFE, but I have no plans to work on it.

          Ramon Leon added a comment -

          This plugin could help: https://github.com/jenkinsci/adoptopenjdk-plugin

          I have my concerns (legals) about the next steps for the jdk-tool-plugin: https://github.com/jenkinsci/jdk-tool-plugin/pull/5#issuecomment-497321545

          Ramon Leon added a comment - This plugin could help: https://github.com/jenkinsci/adoptopenjdk-plugin I have my concerns (legals) about the next steps for the jdk-tool-plugin : https://github.com/jenkinsci/jdk-tool-plugin/pull/5#issuecomment-497321545

          Mark Waite added a comment -

          We can't change Oracle's download site or their license agreement.

          Mark Waite added a comment - We can't change Oracle's download site or their license agreement.

            Unassigned Unassigned
            owood Owen Wood
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: