Error installing automatically JDK 8u192

26 views
Skip to first unread message

bnext...@gmail.com

unread,
Jan 16, 2019, 5:21:53 PM1/16/19
to Jenkins Users
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
ERROR: SEVERE ERROR occurs
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)
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?

bnext...@gmail.com

unread,
Jan 17, 2019, 12:23:50 PM1/17/19
to Jenkins Users
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?

Mark Waite

unread,
Jan 17, 2019, 1:23:16 PM1/17/19
to Jenkins Users
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
Reply all
Reply to author
Forward
0 new messages