在Jenkins中安装JDK jdk-9.0.1-oth-JPR时出错

时间:2018-05-27 09:19:53

标签: jenkins

要解决以下问题,请执行以下操作

管理Jenkins»全球工具配置

  • 删除从Oracle站点下载的JDK的自动安装程序。

在工作区C:\ Jenkins \ workspace \

中远程构建
Installing JDK jdk-9.0.1-oth-JPR
FATAL: Unable to produce a script file
hudson.AbortException: Couldn't find the right download for WINDOWS and i386 combination
    at hudson.tools.JDKInstaller.locate(JDKInstaller.java:443)
    at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:138)
    at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:72)
    at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109)
    at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
    at hudson.model.JDK.forNode(JDK.java:144)
    at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:358)
    at hudson.model.Run.getEnvironment(Run.java:2264)
    at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:921)
    at com.lookout.jenkins.EnvironmentScript.generateEnvironment(EnvironmentScript.java:147)
    at com.lookout.jenkins.EnvironmentScript.setUp(EnvironmentScript.java:119)
    at hudson.model.Build$BuildExecution.doRun(Build.java:157)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
    at hudson.model.Run.execute(Run.java:1728)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:405)

1 个答案:

答案 0 :(得分:1)

管理Jenkins»全球工具配置

删除从Oracle站点下载的JDK的自动安装程序。