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

Unclear error message when a release is unavailable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: adoptopenjdk-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.190.1
      AdoptOpenJDK installer Plugin 1.2
    • Similar Issues:

      Description

      After upgrading Jenkins, the selected JDK is no longer being installed.
      I have tried jdk-11.0.4+11.4, jdk-11.0.4+11.4_openj9-0.15.1 and jdk-11.0.4+11.2.

      java.io.IOException: Unable to locate binary. ID: jdk-11.0.4+11.4_openj9-0.15.1, Platform: LINUX, CPU: amd64
      	at io.jenkins.plugins.adoptopenjdk.AdoptOpenJDKInstaller.performInstallation(AdoptOpenJDKInstaller.java:116)
      	at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:69)
      	at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109)
      	at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
      	at hudson.model.JDK.forNode(JDK.java:147)
      	at hudson.model.JDK.forNode(JDK.java:60)
      	at org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:152)
      	at org.jenkinsci.plugins.workflow.steps.ToolStep$Execution.run(ToolStep.java:133)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Finished: FAILURE
      

      The previous tool appears to have been removed. $JENKINS_HOME/node/tools/hudson.model.JDK/JDK_11 is an empty directory.

        Attachments

          Activity

          Hide
          jameshowe James Howe added a comment -

          Downgrading back to 2.176.4 did not fix it.

          I'm not sure what to try now.

          Show
          jameshowe James Howe added a comment - Downgrading back to 2.176.4 did not fix it. I'm not sure what to try now.
          Hide
          jameshowe James Howe added a comment -

          Going further back on the list of available JDKs, jdk-11.0.4+11_openj9-0.15.1 worked. I have no idea why.

          Show
          jameshowe James Howe added a comment - Going further back on the list of available JDKs, jdk-11.0.4+11_openj9-0.15.1 worked. I have no idea why.
          Hide
          mmchr Mads Mohr Christensen added a comment - - edited

          It looks like those versions doesn't have a Linux amd64 version:

          https://adoptopenjdk.net/archive.html?variant=openjdk11&jvmVariant=hotspot

          So I think we should improve the error message and perhaps find a way to display the list of supported platforms for each release.

          Show
          mmchr Mads Mohr Christensen added a comment - - edited It looks like those versions doesn't have a Linux amd64 version: https://adoptopenjdk.net/archive.html?variant=openjdk11&jvmVariant=hotspot So I think we should improve the error message and perhaps find a way to display the list of supported platforms for each release.
          Hide
          jameshowe James Howe added a comment -

          Is a "latest available" option for each major version/implementation possible?

          Show
          jameshowe James Howe added a comment - Is a "latest available" option for each major version/implementation possible?
          Show
          mmchr Mads Mohr Christensen added a comment - https://github.com/jenkinsci/adoptopenjdk-plugin/pull/12

            People

            Assignee:
            mmchr Mads Mohr Christensen
            Reporter:
            jameshowe James Howe
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: