![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Assignee:
|
Unassigned |
|
Components:
|
core |
|
Created:
|
19/Nov/14 6:35 AM
|
|
Description:
|
When creating a project and setting JDK 8u25, the JDK installation will fail on a slave with the error log posted below. When "faking" the installation by setting the appropriate files, the JDK installation is skipped and the build runs fine.
The console output contains a FileNotFoundException. Looking on the slave manually, the log file doesn't exist. Invoking the JDK installer manually with the line given in the console output has the same result. The installation aborts, no log file is being created.
Altering the line by removing the '-signs before and after the /L option will run the installation successfully.
----------------------------------------
Console output:
Installing C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe
[1.8.0_25] $ C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25 '/L \"C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log\"'
Failed to install JDK. Exit code=-80
ERROR: SEVERE ERROR occurs
org.jenkinsci.lib.envinject.EnvInjectException: java.io.IOException: java.io.FileNotFoundException: C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden)
at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:84)
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:587)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:491)
at hudson.model.Run.execute(Run.java:1759)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: java.io.IOException: java.io.FileNotFoundException: C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden)
at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:169)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.Reader.read(Unknown Source)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2001)
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1980)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:1957)
at hudson.tools.JDKInstaller.install(JDKInstaller.java:273)
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:79)
... 8 more
Caused by: java.io.FileNotFoundException: C:\NoScan\jenkins\tools\hudson.model.JDK\1.8.0_25\jdk.exe.install.log (Das System kann die angegebene Datei nicht finden)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at hudson.FilePath$33.invoke(FilePath.java:1749)
at hudson.FilePath$33.invoke(FilePath.java:1742)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2665)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:328)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
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:63)
at java.lang.Thread.run(Unknown Source)
Notifying upstream projects of job completion
Finished: FAILURE
|
|
Environment:
|
Jenkins 1.590, Master on Windows Server 2012 R2, deployed in Tomcat 8.0.
Slaves installed on Windows 7 x64 and Windows 8.1 x64.
|
|
Project:
|
Jenkins
|
|
Priority:
|
Major
|
|
Reporter:
|
Stefan Stern
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[email protected].
For more options, visit
https://groups.google.com/d/optout.