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

Solutions on the web

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
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
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:204)
at hudson.model.JDK.forNode(JDK.java:126)
at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:352)
at hudson.model.Run.getEnvironment(Run.java:2196)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:871)
at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:136)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:742)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:714)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:663)
at hudson.model.Run.execute(Run.java:1713)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)

Users with the same issue

You are the first who have seen this exception.

Write tip

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