Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22401

Auto Install jdk 8 from oracle downloads html instead of bin

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • None
    • Centos 6.5
      x64
      Jenkins ver. 1.556

      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-22401] Auto Install jdk 8 from oracle downloads html instead of bin

          Andrzej Jóźwik added a comment - - edited

          Jenkins does not ask about credentials. Maybe the content of download form was changed on oracle site.

          Andrzej Jóźwik added a comment - - edited Jenkins does not ask about credentials. Maybe the content of download form was changed on oracle site.

          A can not add oracle credentials.
          My platform: Centos 6.5 x64

          Andrzej Jóźwik added a comment - A can not add oracle credentials. My platform: Centos 6.5 x64

          James Jacocks added a comment -

          I have the same issue, and not just with JDK 8. It looks like Oracle now wants an Oracle account to be used for JDK downloads, but I don't see a place to enter one, in the autoinstall config.

          James Jacocks added a comment - I have the same issue, and not just with JDK 8. It looks like Oracle now wants an Oracle account to be used for JDK downloads, but I don't see a place to enter one, in the autoinstall config.

          I have the same issue trying to install JDK 7 update 45 and 51.

          Marc-Andre Laperle added a comment - I have the same issue trying to install JDK 7 update 45 and 51.

          Jesse Glick added a comment -

          Working fine in 1.559-SNAPSHOT. Please, when reporting a bug you must specify which version of Jenkins you are using, or there is no way of telling if your bug has already been fixed!

          Jesse Glick added a comment - Working fine in 1.559-SNAPSHOT. Please, when reporting a bug you must specify which version of Jenkins you are using, or there is no way of telling if your bug has already been fixed!

            Unassigned Unassigned
            ajozwik Andrzej Jóźwik
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: