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

Jenkins JIRA | Andrzej Jóźwik | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Problem with downloading html oracle sdk - instead of ask on credential occur again - now for java 8. Started by user anonymous Building in workspace /var/lib/jenkins/jobs/redmineplay/workspace Installing JDK jdk-8-oth-JPR Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz Downloading 5307bytes Installing /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh [JDK] $ /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh -noregister /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 1: html: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 2: head: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 3: title: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 4: META: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 5: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 6: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 7: : command not found /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 8: body: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 9: div: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 10: table: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 11: tr: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: syntax error near unexpected token `<' /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td> ' ERROR: Failed to install JDK. Exit code=2 Archiving artifacts Installing JDK jdk-8-oth-JPR Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz Downloading 5307bytes Installing /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh [JDK] $ /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh -noregister /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 1: html: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 2: head: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 3: title: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 4: META: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 5: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 6: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 7: : command not found /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 8: body: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 9: div: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 10: table: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 11: tr: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: syntax error near unexpected token `<' /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td> ' ERROR: Failed to archive artifacts: smtpserver/target/*.tar.gz 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) Finished: FAILURE

    Jenkins JIRA | 3 years ago | Andrzej Jóźwik
    hudson.AbortException: Failed to install JDK. Exit code=2
  2. 0

    Problem with downloading html oracle sdk - instead of ask on credential occur again - now for java 8. Started by user anonymous Building in workspace /var/lib/jenkins/jobs/redmineplay/workspace Installing JDK jdk-8-oth-JPR Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz Downloading 5307bytes Installing /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh [JDK] $ /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh -noregister /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 1: html: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 2: head: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 3: title: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 4: META: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 5: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 6: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 7: : command not found /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 8: body: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 9: div: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 10: table: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 11: tr: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: syntax error near unexpected token `<' /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td> ' ERROR: Failed to install JDK. Exit code=2 Archiving artifacts Installing JDK jdk-8-oth-JPR Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz Downloading 5307bytes Installing /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh [JDK] $ /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh -noregister /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 1: html: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 2: head: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 3: title: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 4: META: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 5: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 6: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 7: : command not found /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 8: body: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 9: div: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 10: table: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 11: tr: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: syntax error near unexpected token `<' /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td> ' ERROR: Failed to archive artifacts: smtpserver/target/*.tar.gz 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) Finished: FAILURE

    Jenkins JIRA | 3 years ago | Andrzej Jóźwik
    hudson.AbortException: Failed to install JDK. Exit code=2
  3. 0

    builds aborted due to time out in agent connection?

    GitHub | 2 years ago | adriaanm
    hudson.AbortException: no workspace for scala-2.11.x-validate-test #107
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Intermittent "Slave went offline during the build"

    GitHub | 2 years ago | retronym
    hudson.AbortException: no workspace for scala-2.11.x-integrate-ide #71
  6. 0

    Plugin always fails to merge even when there are no merge conflicts

    GitHub | 2 years ago | CVirus
    hudson.AbortException: No test report files were found. Configuration error?

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.AbortException

      Failed to install JDK. Exit code=2

      at hudson.tools.JDKInstaller.install()
    2. Hudson
      Executor.run
      1. hudson.tools.JDKInstaller.install(JDKInstaller.java:189)
      2. hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:132)
      3. hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61)
      4. hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107)
      5. hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:204)
      6. hudson.model.JDK.forNode(JDK.java:126)
      7. hudson.model.AbstractProject.getEnvironment(AbstractProject.java:352)
      8. hudson.model.Run.getEnvironment(Run.java:2196)
      9. hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:871)
      10. hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:136)
      11. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      12. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:742)
      13. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:714)
      14. hudson.model.Build$BuildExecution.post2(Build.java:183)
      15. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:663)
      16. hudson.model.Run.execute(Run.java:1713)
      17. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      18. hudson.model.ResourceController.execute(ResourceController.java:88)
      19. hudson.model.Executor.run(Executor.java:231)
      19 frames