Yes, it can be downloaded locally and distributed as a "JDK tool" defined in the "Global tool configuration" of "Manage Jenkins". However, I was reminded by Arnaud Heritier some time ago that downloading it and distributing it locally may be a violation of the Oracle license agreement or the Oracle terms and conditions.
With the increasing visibility of OpenJDK, I'm moving more and more to depend on OpenJDK builds rather than Oracle builds. I don't violate OpenJDK license agreements when I cache a copy of their installer locally. Mark Waite On Thursday, January 17, 2019 at 10:23:50 AM UTC-7, [email protected] wrote: > > It started working today, it looks like it was an issue with the website > of Oracle. Could the file be downloaded manually and be provided in a > local path to Jenkins somehow? > > On Wednesday, January 16, 2019 at 4:21:53 PM UTC-6, [email protected] > wrote: >> >> Hi, >> >> While updating the JDK automatically to the latest available of Java >> 8(192 it is showing an error when running a job. >> >> Jenkins Version 2.157 >> Runtime Java: 1.8.0_191-b12 >> OS: Windows Server 2012 R2 >> >> Log: >> [EnvInject] - Loading node environment variables. >> Installing JDK jdk-8u192-oth-JPR >> Downloading JDK from >> https://download.oracle.com/otn-pub/java/jdk/8u192-b12/750e1c8617c5452694857ad95c3ee230/jdk-8u192-windows-x64.exe >> ERROR: SEVERE ERROR occurs >> org.jenkinsci.lib.envinject.EnvInjectException: java.io.IOException: >> Failed to request >> https://download.oracle.com/otn-pub/java/jdk/8u192-b12/750e1c8617c5452694857ad95c3ee230/jdk-8u192-windows-x64.exe?AuthParam=1547661233_86512d6bbec0aa3bfeb252b1e1926a6a >> >> exit code=404 >> at >> org.jenkinsci.plugins.envinject.util.RunHelper.getBuildVariables(RunHelper.java:137) >> at >> org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironmentWithoutJobPropertyObject(EnvInjectListener.java:235) >> at >> org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:51) >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:542) >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:462) >> at hudson.model.Run.execute(Run.java:1810) >> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) >> at hudson.model.ResourceController.execute(ResourceController.java:97) >> at hudson.model.Executor.run(Executor.java:429) >> Caused by: java.io.IOException: Failed to request >> https://download.oracle.com/otn-pub/java/jdk/8u192-b12/750e1c8617c5452694857ad95c3ee230/jdk-8u192-windows-x64.exe?AuthParam=1547661233_86512d6bbec0aa3bfeb252b1e1926a6a >> >> 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 >> org.jenkinsci.plugins.envinject.util.RunHelper.getJDKVariables(RunHelper.java:111) >> at >> org.jenkinsci.plugins.envinject.util.RunHelper.getBuildVariables(RunHelper.java:135) >> ... 8 more >> >> Any recommendation to fix the issue? >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e91149a5-cad0-4bb7-86ec-423ac7cd357a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
