-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
When a tool to be auto-installed is available on the master only Jenkins shows this stacktrace which is not needed:
(note below example is through custom tools plugin but it also occurs using built-in jdk or maven auto-installation)
08:14:16 [CustomTools] - firefox-36.0.1: Starting installation 08:14:16 Unpacking file:///home/ci/jenkins/data/installer-packages/firefox-windows.zip to C:\RC\jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\firefox-36.0.1 on D02DI1419933 08:14:16 ERROR: Failed to download file:/home/agri/jenkins/data/installer-packages/firefox-windows.zip from slave; will retry from master 08:14:16 java.io.IOException: remote file operation failed: C:\RC\jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\firefox-36.0.1 at hudson.remoting.Channel@36bd70ff:D02DI1419933AGR: java.io.FileNotFoundException: \home\ci\jenkins\data\installer-packages\firefox-windows.zip (The system cannot find the path specified) 08:14:16 at hudson.FilePath.act(FilePath.java:977) 08:14:16 at hudson.FilePath.act(FilePath.java:959) 08:14:16 at hudson.FilePath.installIfNecessaryFrom(FilePath.java:798) 08:14:16 at hudson.tools.ZipExtractionInstaller.performInstallation(ZipExtractionInstaller.java:79) 08:14:16 at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68) 08:14:16 at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) 08:14:16 at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:205) 08:14:16 at com.cloudbees.jenkins.plugins.customtools.CustomTool.forNode(CustomTool.java:154) 08:14:16 at com.cloudbees.jenkins.plugins.customtools.CustomToolInstallWrapper.decorateLauncher(CustomToolInstallWrapper.java:184) 08:14:16 at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:581) 08:14:16 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:491) 08:14:16 at hudson.model.Run.execute(Run.java:1759) 08:14:16 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:537) 08:14:16 at hudson.model.ResourceController.execute(ResourceController.java:89) 08:14:16 at hudson.model.Executor.run(Executor.java:240) 08:14:16 Caused by: java.io.FileNotFoundException: \home\agri-ci\jenkins\data\installer-packages\firefox-windows.zip (The system cannot find the path specified) 08:14:16 at java.io.FileInputStream.open(Native Method) 08:14:16 at java.io.FileInputStream.<init>(Unknown Source) 08:14:16 at java.io.FileInputStream.<init>(Unknown Source) 08:14:16 at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source) 08:14:16 at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source) 08:14:16 at java.net.URL.openStream(Unknown Source) 08:14:16 at hudson.FilePath$Unpack.invoke(FilePath.java:834) 08:14:16 at hudson.FilePath$Unpack.invoke(FilePath.java:828) 08:14:16 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2677) 08:14:16 at hudson.remoting.UserRequest.perform(UserRequest.java:121) 08:14:16 at hudson.remoting.UserRequest.perform(UserRequest.java:49) 08:14:16 at hudson.remoting.Request$2.run(Request.java:324) 08:14:16 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) 08:14:16 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 08:14:16 at java.util.concurrent.FutureTask.run(Unknown Source) 08:14:16 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 08:14:16 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 08:14:16 at hudson.remoting.Engine$1$1.run(Engine.java:63) 08:14:16 at java.lang.Thread.run(Unknown Source) 08:14:16 at ......remote call to D02DI1419933AGR(Native Method) 08:14:16 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356) 08:14:16 at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) 08:14:16 at hudson.remoting.Channel.call(Channel.java:752) 08:14:16 at hudson.FilePath.act(FilePath.java:970) 08:14:16 ... 14 more 08:14:51 [CustomTools] - firefox-36.0.1: Tool is installed at C:\RC\jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\firefox-36.0.1 08:14:51 [CustomTools] - firefox-36.0.1: Setting firefox-36.0.1_HOME=C:\RC\jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\firefox-36.0.1
Also note how after the stacktrace it takes about 35 seconds for the tool to be installed, this seems excessive for a 50MB zip file. Previously when the tool was made available over http to the slaves it only took 3-4 seconds.
08:14:16 ... 14 more 08:14:51 [CustomTools] - firefox-36.0.1: Tool is installed at