hudson.AbortException: Failed to install JDK. Exit code=2

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Jenkins JIRA by First Last, 1 year ago
Failed to install JDK. Exit code=2
via Jenkins JIRA by First Last, 1 year ago
Failed to install JDK. Exit code=2
via Jenkins JIRA by Andrzej Jóźwik, 1 year ago
Failed to install JDK. Exit code=2
via Jenkins JIRA by Andrzej Jóźwik, 1 year ago
Failed to install JDK. Exit code=2
hudson.AbortException: Failed to install JDK. Exit code=2
at hudson.tools.JDKInstaller.install(JDKInstaller.java:189)
at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:132)
at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61)
at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107)
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:203)
at hudson.model.JDK.forNode(JDK.java:122)
at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:311)
at hudson.model.Run.getEnvironment(Run.java:1993)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:936)
at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:115)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:732)
at hudson.model.Run.execute(Run.java:1568)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.