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

Installing JDK on Windows Slave 8.1

XMLWordPrintable

      It seems that the automatic installation of a JDK doesn't work anymore (at least, on Windows 8.1 Pro).

      The error is:

      Installing C:\jenkins\tools\hudson.model.JDK\JDK17Auto\jdk.exe
      [JDK17Auto] $ C:\jenkins\tools\hudson.model.JDK\JDK17Auto\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\jenkins\tools\hudson.model.JDK\JDK17Auto /L C:\jenkins\tools\hudson.model.JDK\install4997222534011847136log
      Failed to install JDK. Exit code=1,618
      ERROR: SEVERE ERROR occurs
      org.jenkinsci.lib.envinject.EnvInjectException: hudson.AbortException
      	at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:91)
      	at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironmentWithoutJobPropertyObject(EnvInjectListener.java:231)
      	at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:46)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:574)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
      	at hudson.model.Run.execute(Run.java:1738)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:381)
      Caused by: hudson.AbortException
      	at hudson.tools.JDKInstaller.install(JDKInstaller.java:279)
      	at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:141)
      	at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
      	at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107)
      	at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:205)
      	at hudson.model.JDK.forNode(JDK.java:130)
      	at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:86)
      	... 8 more
      

      If I execute the command

      C:\jenkins\tools\hudson.model.JDK\JDK17Auto\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\jenkins\tools\hudson.model.JDK\JDK17Auto /L
      

      manually I see Windows Installer "man" instructions, from which I guess that "/s" has been replaced by "/quiet".

            Unassigned Unassigned
            jhack Giacomo Boccardo
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: