Java Jenkins slave无法安装jdk

Java Jenkins slave无法安装jdk,java,windows,jenkins,uac,slave,Java,Windows,Jenkins,Uac,Slave,我试图在Windows从机上从Jenkins作业运行一些基本的批处理命令,但Jenkins似乎无法安装jdk 由于它显示CreateProcess error=740,请求的操作需要提升我尝试以管理员身份登录从机并在Windows中完全禁用UAC,但没有成功 有什么线索可以让它工作吗?我正在运行Windows8 编辑: 我尝试将C:\Jenkins\tools\hudson.model.JDK\Java\u SE\u Development\u Kit\u 8u60\JDK设置为始终作为所有用户

我试图在Windows从机上从Jenkins作业运行一些基本的批处理命令,但Jenkins似乎无法安装jdk

由于它显示
CreateProcess error=740,请求的操作需要提升
我尝试以管理员身份登录从机并在Windows中完全禁用UAC,但没有成功

有什么线索可以让它工作吗?我正在运行Windows8

编辑: 我尝试将
C:\Jenkins\tools\hudson.model.JDK\Java\u SE\u Development\u Kit\u 8u60\JDK
设置为始终作为所有用户的管理员运行。这没用。当我尝试在cmd.exe中本地运行jdk时,它运行时没有错误

以下是完整的堆栈跟踪:

Installing C:\Jenkins\tools\hudson.model.JDK\Java_SE_Development_Kit_8u60\jdk.exe
[Java_SE_Development_Kit_8u60] $ C:\Jenkins\tools\hudson.model.JDK\Java_SE_Development_Kit_8u60\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\Jenkins\tools\hudson.model.JDK\Java_SE_Development_Kit_8u60 /L C:\Jenkins\tools\hudson.model.JDK\install4140010637459422013log
Unknown error (0x2e4)
FATAL: command execution failed
java.io.IOException: Cannot run program "C:\Jenkins\tools\hudson.model.JDK\Java_SE_Development_Kit_8u60\jdk.exe" (in directory "C:\Jenkins\tools\hudson.model.JDK\Java_SE_Development_Kit_8u60"): CreateProcess error=740, The requested operation requires elevation
    at java.lang.ProcessBuilder.start(Unknown Source)
    at hudson.Proc$LocalProc.<init>(Proc.java:244)
    at hudson.Proc$LocalProc.<init>(Proc.java:216)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:816)
    at hudson.Launcher$ProcStarter.start(Launcher.java:382)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1149)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1114)
    at hudson.remoting.UserRequest.perform(UserRequest.java:121)
    at hudson.remoting.UserRequest.perform(UserRequest.java:49)
    at hudson.remoting.Request$2.run(Request.java:326)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at hudson.remoting.Engine$1$1.run(Engine.java:69)
    at java.lang.Thread.run(Unknown Source)
    at ......remote call to ToonBed(Native Method)
    at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413)
    at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
    at hudson.remoting.Channel.call(Channel.java:778)
    at hudson.Launcher$RemoteLauncher.launch(Launcher.java:929)
    at hudson.Launcher$ProcStarter.start(Launcher.java:382)
    at hudson.Launcher$ProcStarter.join(Launcher.java:389)
    at hudson.tools.JDKInstaller.install(JDKInstaller.java:268)
    at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:141)
    at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
    at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
    at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
    at hudson.model.JDK.forNode(JDK.java:132)
    at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:359)
    at hudson.model.Run.getEnvironment(Run.java:2234)
    at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:935)
    at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:90)
    at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
    at hudson.model.Build$BuildExecution.build(Build.java:205)
    at hudson.model.Build$BuildExecution.doRun(Build.java:162)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
    at hudson.model.Run.execute(Run.java:1741)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:381)
Caused by: java.io.IOException: CreateProcess error=740, The requested operation requires elevation
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    at java.lang.ProcessBuilder.start(Unknown Source)
    at hudson.Proc$LocalProc.<init>(Proc.java:244)
    at hudson.Proc$LocalProc.<init>(Proc.java:216)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:816)
    at hudson.Launcher$ProcStarter.start(Launcher.java:382)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1149)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1114)
    at hudson.remoting.UserRequest.perform(UserRequest.java:121)
    at hudson.remoting.UserRequest.perform(UserRequest.java:49)
    at hudson.remoting.Request$2.run(Request.java:326)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at hudson.remoting.Engine$1$1.run(Engine.java:69)
    at java.lang.Thread.run(Unknown Source)
Build step 'Execute Windows batch command' marked build as failure
Robot results publisher started...
-Parsing output xml:
Installing C:\Jenkins\tools\hudson.model.JDK\Java_SE_Development_Kit_8u60\jdk.exe
[Java_SE_Development_Kit_8u60] $ C:\Jenkins\tools\hudson.model.JDK\Java_SE_Development_Kit_8u60\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\Jenkins\tools\hudson.model.JDK\Java_SE_Development_Kit_8u60 /L C:\Jenkins\tools\hudson.model.JDK\install2992849421630137437log
Failed!
java.io.IOException: Cannot run program "C:\Jenkins\tools\hudson.model.JDK\Java_SE_Development_Kit_8u60\jdk.exe" (in directory "C:\Jenkins\tools\hudson.model.JDK\Java_SE_Development_Kit_8u60"): CreateProcess error=740, The requested operation requires elevation
    at java.lang.ProcessBuilder.start(Unknown Source)
    at hudson.Proc$LocalProc.<init>(Proc.java:244)
    at hudson.Proc$LocalProc.<init>(Proc.java:216)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:816)
    at hudson.Launcher$ProcStarter.start(Launcher.java:382)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1149)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1114)
    at hudson.remoting.UserRequest.perform(UserRequest.java:121)
    at hudson.remoting.UserRequest.perform(UserRequest.java:49)
    at hudson.remoting.Request$2.run(Request.java:326)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at hudson.remoting.Engine$1$1.run(Engine.java:69)
    at java.lang.Thread.run(Unknown Source)
    at ......remote call to ToonBed(Native Method)
    at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413)
    at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
    at hudson.remoting.Channel.call(Channel.java:778)
    at hudson.Launcher$RemoteLauncher.launch(Launcher.java:929)
    at hudson.Launcher$ProcStarter.start(Launcher.java:382)
    at hudson.Launcher$ProcStarter.join(Launcher.java:389)
    at hudson.tools.JDKInstaller.install(JDKInstaller.java:268)
    at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:141)
    at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
    at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
    at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
    at hudson.model.JDK.forNode(JDK.java:132)
    at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:359)
    at hudson.model.Run.getEnvironment(Run.java:2234)
    at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:935)
    at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:234)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
    at hudson.model.Build$BuildExecution.post2(Build.java:185)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
    at hudson.model.Run.execute(Run.java:1766)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:381)
Caused by: java.io.IOException: CreateProcess error=740, The requested operation requires elevation
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    at java.lang.ProcessBuilder.start(Unknown Source)
    at hudson.Proc$LocalProc.<init>(Proc.java:244)
    at hudson.Proc$LocalProc.<init>(Proc.java:216)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:816)
    at hudson.Launcher$ProcStarter.start(Launcher.java:382)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1149)
    at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1114)
    at hudson.remoting.UserRequest.perform(UserRequest.java:121)
    at hudson.remoting.UserRequest.perform(UserRequest.java:49)
    at hudson.remoting.Request$2.run(Request.java:326)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at hudson.remoting.Engine$1$1.run(Engine.java:69)
    at java.lang.Thread.run(Unknown Source)
Finished: FAILURE
安装C:\Jenkins\tools\hudson.model.JDK\Java\u SE\u Development\u Kit\u 8u60\JDK.exe
[Java\u SE\u Development\u Kit\u 8u60]$C:\Jenkins\tools\hudson.model.JDK\Java\u SE\u Development\u Kit\u 8u60\JDK.exe/s ADDLOCAL=“ToolsFeature”REBOOT=ReallySuppress INSTALLDIR=C:\Jenkins\tools\hudson.model.JDK\Java\u SE\u Development\u Kit\u 8u60/L C:\Jenkins\tools\hudson.model.JDK\JDK\install4140010637459422013log
未知错误(0x2e4)
致命:命令执行失败
java.io.IOException:无法运行程序“C:\Jenkins\tools\hudson.model.JDK\java\u SE\u Development\u Kit\u 8u60\JDK.exe”(在目录“C:\Jenkins\tools\hudson.model.JDK\java\u SE\u Development\u Kit\u 8u60”中):CreateProcess error=740,请求的操作需要提升
位于java.lang.ProcessBuilder.start(未知源)
位于hudson.Proc$LocalProc(Proc.java:244)
在hudson.Proc$LocalProc.(Proc.java:216)
位于hudson.Launcher$LocalLauncher.launch(Launcher.java:816)
位于hudson.Launcher$ProcStarter.start(Launcher.java:382)
在hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1149)
在hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1114)
在hudson.remoting.UserRequest.perform(UserRequest.java:121)
在hudson.remoting.UserRequest.perform(UserRequest.java:49)
在hudson.remoting.Request$2.run(Request.java:326)
在hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
位于java.util.concurrent.FutureTask.run(未知源)
位于java.util.concurrent.ThreadPoolExecutor.runWorker(未知源)
位于java.util.concurrent.ThreadPoolExecutor$Worker.run(未知源)
在hudson.remoting.Engine$1$1.run(Engine.java:69)
位于java.lang.Thread.run(未知源)
在……远程调用ToonBed(本机方法)
位于hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413)
位于hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
在hudson.remoting.Channel.call(Channel.java:778)
位于hudson.Launcher$RemoteLauncher.launch(Launcher.java:929)
位于hudson.Launcher$ProcStarter.start(Launcher.java:382)
位于hudson.Launcher$ProcStarter.join(Launcher.java:389)
安装(JDKInstaller.java:268)
位于hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:141)
位于hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
位于hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
位于hudson.tools.toolsinstallation.translateFor(toolsinstallation.java:206)
位于hudson.model.JDK.forNode(JDK.java:132)
位于hudson.model.AbstractProject.getEnvironment(AbstractProject.java:359)
位于hudson.model.Run.getEnvironment(Run.java:2234)
位于hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:935)
在hudson.tasks.commandexplorer.perform(commandexplorer.java:90)
在hudson.tasks.commandexplorer.perform(commandexplorer.java:66)
在hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
位于hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
位于hudson.model.Build$BuildExecution.Build(Build.java:205)
位于hudson.model.Build$BuildExecution.doRun(Build.java:162)
位于hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
位于hudson.model.Run.execute(Run.java:1741)
运行(FreeStyleBuild.java:43)
在hudson.model.ResourceController.execute(ResourceController.java:98)
运行(Executor.java:381)
原因:java.io.IOException:CreateProcess error=740,请求的操作需要提升
在java.lang.ProcessImpl.create(本机方法)
位于java.lang.ProcessImpl。(未知源)
位于java.lang.ProcessImpl.start(未知源)
位于java.lang.ProcessBuilder.start(未知源)
位于hudson.Proc$LocalProc(Proc.java:244)
在hudson.Proc$LocalProc.(Proc.java:216)
位于hudson.Launcher$LocalLauncher.launch(Launcher.java:816)
位于hudson.Launcher$ProcStarter.start(Launcher.java:382)
在hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1149)
在hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1114)
在hudson.remoting.UserRequest.perform(UserRequest.java:121)
在hudson.remoting.UserRequest.perform(UserRequest.java:49)
在hudson.remoting.Request$2.run(Request.java:326)
在hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
位于java.util.concurrent.FutureTask.run(未知源)
位于java.util.concurrent.ThreadPoolExecutor.runWorker(未知源)
位于java.util.concurrent.ThreadPoolExecutor$Worker.run(未知源)
在hudson.remoting.Engine$1$1.run(Engine.java:69)
位于java.lang.Thread.run(未知源)
生成步骤“执行Windows批处理命令”将生成标记为失败
机器人结果发布程序已启动。。。
-正在分析输出xml:
安装C:\Jenkins\tools\hudson.model.JDK\Java\u SE\u Development\u Kit\u 8u60\JDK.exe
[Java\u SE\u Development\u Kit\u 8u60]$C:\Jenkins\tools\hudson.model.JDK\Java\u SE\u Development\u Kit\u 8u60\JDK.exe/s ADDLOCAL=“ToolsFeature”REBOOT=ReallySuppress INSTALLDIR=C:\Jenkins\tools\hudson.model.JDK\Java\u SE\u Development\u Kit\u 8u60/L C:\Jenkins\tools\hudson.model.JDK\install299284494216307437日志
失败!
java.i