Jenkins - Automatic Java installation problem

409 views
Skip to first unread message

Mahadi Hasan

unread,
Dec 1, 2011, 3:58:28 AM12/1/11
to Jenkins Users
Hello,

I am trying to learn Jenkins by the book: Jenkins the definitive
guide. But stopped at book chapter point: 2.6

When i run a build, i got a java installation error message in console
as bellow, i am using WIN7, 64bit. In Jenkins configuration i choose
the automatic installation of Java. Would you guys please help me out
to figure out this problem.

Looking forward for your response!!

Best Regards,
Mahadi


Console Output

View as plain text
Started by user anonymous
Checkout:workspace / C:\Program Files (x86)\Jenkins\jobs\game-of-life-
default\workspace - hudson.remoting.LocalChannel@1b68215
Using strategy: Default
Installing C:\Program Files (x86)\Jenkins\tools\javaHome\jdk.exe
[javaHome] $ "C:\Program Files (x86)\Jenkins\tools\javaHome\jdk.exe" /
s /v /qn /L '\"C:\Program Files (x86)\Jenkins\tools\javaHome
\jdk.exe.install.log\"' REBOOT=ReallySuppress 'INSTALLDIR=\"C:\Program
Files (x86)\Jenkins\tools\javaHome\"'
Failed to install JDK. Exit code=1 619
ERROR: null
Archiving artifacts
Installing C:\Program Files (x86)\Jenkins\tools\javaHome\jdk.exe
[javaHome] $ "C:\Program Files (x86)\Jenkins\tools\javaHome\jdk.exe" /
s /v /qn /L '\"C:\Program Files (x86)\Jenkins\tools\javaHome
\jdk.exe.install.log\"' REBOOT=ReallySuppress 'INSTALLDIR=\"C:\Program
Files (x86)\Jenkins\tools\javaHome\"'
Failed to install JDK. Exit code=1 619
ERROR: Failed to archive artifacts: **/target/*.jar
hudson.AbortException
at hudson.tools.JDKInstaller.install(JDKInstaller.java:247)
at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:
131)
at
hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:
61)
at
hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:
107)
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:
150)
at hudson.model.JDK.forNode(JDK.java:112)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:820)
at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:115)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild
$AbstractRunner.perform(AbstractBuild.java:692)
at hudson.model.AbstractBuild
$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667)
at hudson.model.AbstractBuild
$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645)
at hudson.model.Build$RunnerImpl.post2(Build.java:162)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:
614)
at hudson.model.Run.run(Run.java:1429)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:
88)
at hudson.model.Executor.run(Executor.java:238)
Recording test results
ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to
exception
java.io.IOException: Unable to delete C:\Program Files (x86)\Jenkins
\tools\javaHome - files in dir: [C:\Program Files (x86)\Jenkins\tools
\javaHome\jdk.exe]
at hudson.Util.deleteFile(Util.java:265)
at hudson.Util.deleteRecursive(Util.java:316)
at hudson.FilePath$9.invoke(FilePath.java:851)
at hudson.FilePath$9.invoke(FilePath.java:849)
at hudson.FilePath.act(FilePath.java:783)
at hudson.FilePath.act(FilePath.java:765)
at hudson.FilePath.deleteRecursive(FilePath.java:849)
at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:
120)
at
hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:
61)
at
hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:
107)
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:
150)
at hudson.model.JDK.forNode(JDK.java:112)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:820)
at
hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:
131)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild
$AbstractRunner.perform(AbstractBuild.java:692)
at hudson.model.AbstractBuild
$AbstractRunner.performAllBuildSteps(AbstractBuild.java:667)
at hudson.model.AbstractBuild
$AbstractRunner.performAllBuildSteps(AbstractBuild.java:645)
at hudson.model.Build$RunnerImpl.post2(Build.java:162)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:
614)
at hudson.model.Run.run(Run.java:1429)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:
88)
at hudson.model.Executor.run(Executor.java:238)
Finished: FAILURE

Didier Durand

unread,
Dec 1, 2011, 4:11:59 AM12/1/11
to Jenkins Users
Hello,

I think the important line in your trace is

"Failed to install JDK. Exit code=1 619 "

Then check this post http://www.myitforum.com/forums/m206971-print.aspx
to see various possible reasons for this code 1619

regards

didier

Reply all
Reply to author
Forward
0 new messages