Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-2023

Update OpenJDK 11 to the latest release on ci.jenkins.io and other Jenkins instances

    Details

    • Similar Issues:
    • Epic Link:

      Description

      There was an issue with Java 11 crash reported recently in IRC (see below). ci.jenkins.io uses the obsolete Java version, and it needs to be updated to 11.0.2

       

      5:03:34 +# SIGSEGV (0xb) at pc=0x00007f0aa0e311e5, pid=3481, tid=3820
      05:03:34 +#
      05:03:34 +# JRE version: OpenJDK Runtime Environment (11.0+28) (build 11+28)
      05:03:34 +# Java VM: OpenJDK 64-Bit Server VM (11+28, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
      05:03:34 +# Problematic frame:
      05:03:34 +# J 10718 c2 net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.defineProperty(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;I)V (380 bytes) @ 0x00007f0aa0e311e5 [0x00007f0aa0e30f60+0x0000000000000285]
      05:03:34 +#

        Attachments

          Activity

          Show
          olblak Olivier Vernin added a comment - Replace https://download.java.net/java/ga/jdk11/openjdk-11_linux-x64_bin.tar.gz by https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz Replace https://download.java.net/java/ga/jdk11/openjdk-11_windows-x64_bin.zip https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_windows-x64_bin.zip
          Hide
          batmat Baptiste Mathus added a comment -

          Reopening because something is apparently going wrong, and now all usages of JDK11 are failing. Meaning all Core PRs, and the various plugins where we've started to run tests using multiple JDKs.

          E.g. https://ci.jenkins.io/blue/rest/organizations/jenkins/pipelines/Core/pipelines/jenkins/branches/PR-3911/runs/1/nodes/10/log/?start=0 (copied for persistence)

          using credential github-access-token
          Cloning the remote Git repository
          Cloning with configured refspecs honoured and without tags
          remote: Enumerating objects
          remote: Counting objects
          remote: Compressing objects
          Receiving objects
          Resolving deltas
          Fetching without tags
          Merging remotes/origin/master commit 398aa582a8c33a20b001db03916c36fb6528ea3a into PR head commit af56180a7ee180b45001116914af82b207bac5a2
          Merge succeeded, producing 4ae6c050677ee2962d0d1204bf845ff7fb0a54fa
          Checking out Revision 4ae6c050677ee2962d0d1204bf845ff7fb0a54fa (PR-3911)
          Commit message: "Merge commit '398aa582a8c33a20b001db03916c36fb6528ea3a' into HEAD"
          First time build. Skipping changelog.
          Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip to /home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/mvn on ubuntu-jenkinsinfrabe5e82
          Unpacking https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz to /home/jenkins/tools/hudson.model.JDK/jdk11 on ubuntu-jenkinsinfrabe5e82
          + mvn -Pdebug -U -Dset.changelist help:evaluate -Dexpression=changelist -Doutput=/home/jenkins/workspace/Core_jenkins_PR-3911@tmp/changelist clean install -Dmaven.test.failure.ignore -V -B -Dmaven.repo.local=/home/jenkins/workspace/Core_jenkins_PR-3911@tmp/m2repo -s settings-azure.xml -e
          The JAVA_HOME environment variable is not defined correctly
          This environment variable is needed to run this program
          NB: JAVA_HOME should point to a JDK not a JRE
          Terminated
          script returned exit code 1
          
          Show
          batmat Baptiste Mathus added a comment - Reopening because something is apparently going wrong, and now all usages of JDK11 are failing. Meaning all Core PRs, and the various plugins where we've started to run tests using multiple JDKs. E.g. https://ci.jenkins.io/blue/rest/organizations/jenkins/pipelines/Core/pipelines/jenkins/branches/PR-3911/runs/1/nodes/10/log/?start=0 (copied for persistence) using credential github-access-token Cloning the remote Git repository Cloning with configured refspecs honoured and without tags remote: Enumerating objects remote: Counting objects remote: Compressing objects Receiving objects Resolving deltas Fetching without tags Merging remotes/origin/master commit 398aa582a8c33a20b001db03916c36fb6528ea3a into PR head commit af56180a7ee180b45001116914af82b207bac5a2 Merge succeeded, producing 4ae6c050677ee2962d0d1204bf845ff7fb0a54fa Checking out Revision 4ae6c050677ee2962d0d1204bf845ff7fb0a54fa (PR-3911) Commit message: "Merge commit '398aa582a8c33a20b001db03916c36fb6528ea3a' into HEAD" First time build. Skipping changelog. Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip to /home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/mvn on ubuntu-jenkinsinfrabe5e82 Unpacking https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz to /home/jenkins/tools/hudson.model.JDK/jdk11 on ubuntu-jenkinsinfrabe5e82 + mvn -Pdebug -U -Dset.changelist help:evaluate -Dexpression=changelist -Doutput=/home/jenkins/workspace/Core_jenkins_PR-3911@tmp/changelist clean install -Dmaven.test.failure.ignore -V -B -Dmaven.repo.local=/home/jenkins/workspace/Core_jenkins_PR-3911@tmp/m2repo -s settings-azure.xml -e The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE Terminated script returned exit code 1
          Hide
          rtyler R. Tyler Croy added a comment -

          I believe I have solved this issue, theh problem was that the extracted directory for the tarball was "jdk-11" rather than the new form needed: "jdk-11.0.2"

          Show
          rtyler R. Tyler Croy added a comment - I believe I have solved this issue, theh problem was that the extracted directory for the tarball was "jdk-11" rather than the new form needed: "jdk-11.0.2"

            People

            • Assignee:
              rtyler R. Tyler Croy
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: