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

Unable to install JDK 21.0.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • adoptopenjdk-plugin
    • Eclipse Temurin installer plugin 1.5

      We're currently unable to install the JDK 21.0.1 release via this plugin.

      The list of available releases on the plugin configuration page contains two jdk-21.0.1+12 entries. Based on the data shown below, the 1st entry is for the Windows/x64 build while the 2nd entry is for the rest.
      The problem is that selecting any of those 2 jdk-21.0.1+12 entries leads to the use of the data for the 1st one (the resulting entry in the Jenkins config.xml is always the same so it can't obviously distinguish between them) while we need the 2nd one.

      It appears that the Windows builds are published separately (see https://api.adoptium.net/v3/assets/feature_releases/21/ga?image_type=jdk&project=jdk ) and the plugin can't handle these situations well - particularly when the release names are identical. In the past I've seen similar situation with older JDK releases, but in those cases the Windows release names were slightly different (like jdk-17.0.9+9 vs jdk-17.0.9+9.1), but this isn't the case here.

      The whole JDK 21 entry in the Jenkins updates/io.jenkins.plugins.adoptopenjdk.AdoptOpenJDKInstaller file is as follows:

      {
        "name": "OpenJDK 21 - HotSpot",
        "releases": [
          {
            "binaries": [
              {
                "architecture": "x64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12/OpenJDK21U-jdk_x64_windows_hotspot_21.0.1_12.zip",
                "openjdk_impl": "hotspot",
                "os": "windows"
              }
            ],
            "openjdk_impl": "hotspot",
            "release_name": "jdk-21.0.1+12"
          },
          {
            "binaries": [
              {
                "architecture": "x64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12/OpenJDK21U-jdk_x64_mac_hotspot_21.0.1_12.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "mac"
              },
              {
                "architecture": "x64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12/OpenJDK21U-jdk_x64_linux_hotspot_21.0.1_12.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "linux"
              },
              {
                "architecture": "aarch64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12/OpenJDK21U-jdk_aarch64_linux_hotspot_21.0.1_12.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "linux"
              },
              {
                "architecture": "x64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12/OpenJDK21U-jdk_x64_alpine-linux_hotspot_21.0.1_12.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "alpine-linux"
              },
              {
                "architecture": "ppc64le",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12/OpenJDK21U-jdk_ppc64le_linux_hotspot_21.0.1_12.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "linux"
              },
              {
                "architecture": "aarch64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12/OpenJDK21U-jdk_aarch64_mac_hotspot_21.0.1_12.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "mac"
              },
              {
                "architecture": "aarch64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12/OpenJDK21U-jdk_aarch64_alpine-linux_hotspot_21.0.1_12.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "alpine-linux"
              }
            ],
            "openjdk_impl": "hotspot",
            "release_name": "jdk-21.0.1+12"
          },
          {
            "binaries": [
              {
                "architecture": "x64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21%2B35/OpenJDK21U-jdk_x64_linux_hotspot_21_35.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "linux"
              },
              {
                "architecture": "aarch64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21%2B35/OpenJDK21U-jdk_aarch64_linux_hotspot_21_35.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "linux"
              },
              {
                "architecture": "x64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21%2B35/OpenJDK21U-jdk_x64_alpine-linux_hotspot_21_35.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "alpine-linux"
              },
              {
                "architecture": "x64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21%2B35/OpenJDK21U-jdk_x64_mac_hotspot_21_35.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "mac"
              },
              {
                "architecture": "x64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21%2B35/OpenJDK21U-jdk_x64_windows_hotspot_21_35.zip",
                "openjdk_impl": "hotspot",
                "os": "windows"
              },
              {
                "architecture": "aarch64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21%2B35/OpenJDK21U-jdk_aarch64_alpine-linux_hotspot_21_35.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "alpine-linux"
              },
              {
                "architecture": "aarch64",
                "binary_link": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21%2B35/OpenJDK21U-jdk_aarch64_mac_hotspot_21_35.tar.gz",
                "openjdk_impl": "hotspot",
                "os": "mac"
              }
            ],
            "openjdk_impl": "hotspot",
            "release_name": "jdk-21+35"
          }
        ]
      }

            Unassigned Unassigned
            mag Petr H
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: