hudson.AbortException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • My steps: Base CentOS 6.0 AMI. > Install Java 7 via RPM as root. > Save as custom AMI. > Use new custom AMI for Jenkins slaves > Set up EC2 plugin as reflected in the attachment image. > Run a build, and get the following errors: Building remotely on i-0326a672 in workspace workspace/FriendList Installing tools/hudson.model.JDK/java7/jdk.sh [java7] $ tar xvzf tools/hudson.model.JDK/java7/jdk.sh tar (child): tools/hudson.model.JDK/java7/jdk.sh: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now ERROR: Failed to install JDK. Exit code=2 Archiving artifacts Installing tools/hudson.model.JDK/java7/jdk.sh [java7] $ tar xvzf tools/hudson.model.JDK/java7/jdk.sh tar (child): tools/hudson.model.JDK/java7/jdk.sh: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now ERROR: Failed to archive artifacts: target/*.jar hudson.AbortException: Failed to install JDK. Exit code=2 at hudson.tools.JDKInstaller.install(JDKInstaller.java:189) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:132) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:203) at hudson.model.JDK.forNode(JDK.java:122) at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:311) at hudson.model.Run.getEnvironment(Run.java:1993) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:936) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:115) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:785) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:946) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:732) at hudson.model.Run.execute(Run.java:1568) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Finished: FAILURE
    via by First Last,
  • My steps: Base CentOS 6.0 AMI. > Install Java 7 via RPM as root. > Save as custom AMI. > Use new custom AMI for Jenkins slaves > Set up EC2 plugin as reflected in the attachment image. > Run a build, and get the following errors: Building remotely on i-0326a672 in workspace workspace/FriendList Installing tools/hudson.model.JDK/java7/jdk.sh [java7] $ tar xvzf tools/hudson.model.JDK/java7/jdk.sh tar (child): tools/hudson.model.JDK/java7/jdk.sh: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now ERROR: Failed to install JDK. Exit code=2 Archiving artifacts Installing tools/hudson.model.JDK/java7/jdk.sh [java7] $ tar xvzf tools/hudson.model.JDK/java7/jdk.sh tar (child): tools/hudson.model.JDK/java7/jdk.sh: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now ERROR: Failed to archive artifacts: target/*.jar hudson.AbortException: Failed to install JDK. Exit code=2 at hudson.tools.JDKInstaller.install(JDKInstaller.java:189) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:132) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:203) at hudson.model.JDK.forNode(JDK.java:122) at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:311) at hudson.model.Run.getEnvironment(Run.java:1993) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:936) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:115) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:785) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:946) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:732) at hudson.model.Run.execute(Run.java:1568) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Finished: FAILURE
    via by First Last,
  • Jenkins - Automatic Java installation problem
    via by Mahadi Hasan,
  • [JIRA] [core] (JENKINS-29935) Installing JDK on Windows Slave 8.1
    via by gboccard@gmail.com (JIRA),
  • Problem with downloading html oracle sdk - instead of ask on credential occur again - now for java 8. Started by user anonymous Building in workspace /var/lib/jenkins/jobs/redmineplay/workspace Installing JDK jdk-8-oth-JPR Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz Downloading 5307bytes Installing /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh [JDK] $ /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh -noregister /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 1: html: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 2: head: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 3: title: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 4: META: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 5: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 6: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 7: : command not found /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 8: body: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 9: div: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 10: table: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 11: tr: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: syntax error near unexpected token `<' /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td> ' ERROR: Failed to install JDK. Exit code=2 Archiving artifacts Installing JDK jdk-8-oth-JPR Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz Downloading 5307bytes Installing /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh [JDK] $ /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh -noregister /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 1: html: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 2: head: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 3: title: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 4: META: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 5: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 6: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 7: : command not found /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 8: body: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 9: div: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 10: table: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 11: tr: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: syntax error near unexpected token `<' /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td> ' ERROR: Failed to archive artifacts: smtpserver/target/*.tar.gz hudson.AbortException: Failed to install JDK. Exit code=2 at hudson.tools.JDKInstaller.install(JDKInstaller.java:189) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:132) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:204) at hudson.model.JDK.forNode(JDK.java:126) at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:352) at hudson.model.Run.getEnvironment(Run.java:2196) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:871) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:136) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:742) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:714) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:663) at hudson.model.Run.execute(Run.java:1713) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Finished: FAILURE
    via by Andrzej Jóźwik,
  • First of all, I know there are other tickets dealing with the same issue, but they seem to have been fixed in the latest Jenkins version. But in my case, the issue still remains... I've first created a Windows Slave Service with the slave-agent.jnlp. After this step, the master could succesfully connect to the Windows Slave. Windows Slave is also a Windows Server 2008 R2. To install the slave as a service, I had to install Java Jre. Did the installation in C:\jenkins_opt\Java\jre1.8.0_40. The Windows Slave Service directory is C:\jenkins_slave. Then I launched a Jenkins project on the Slave Node. Jenkins first tries to install a Java jdk in the tools directory. For some reason this doesn't seem to work. What happens is that the installation in C:\jenkins_opt\Java\jre1.8.0_40 is deleted and the Windows Slave is rebooted. After restart, Java installation in C:\jenkins_opt\Java\jre1.8.0_40 is gone and no installation of Java Jdk is done in C:\jenkins_slave\tools\hudson.model.JDK\JDK8u40. The install...log file in C:\jenkins_slave\tools\hudson.model.JDK is empty. ------------------------------------------------------------------------------- Console output of Master Jenkins project: 00:00:00.006 Started by user Lieven Cardoen 00:00:00.008 [EnvInject] - Loading node environment variables. 00:00:23.581 Installing C:\jenkins_slave\tools\hudson.model.JDK\JDK8u40\jdk.exe 00:00:23.916 [JDK8u40] $ C:\jenkins_slave\tools\hudson.model.JDK\JDK8u40\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\jenkins_slave\tools\hudson.model.JDK\JDK8u40 /L C:\jenkins_slave\tools\hudson.model.JDK\install3674831485415202650log 00:00:36.081 Failed to install JDK. Exit code=-1 00:00:36.110 ERROR: SEVERE ERROR occurs 00:00:36.111 org.jenkinsci.lib.envinject.EnvInjectException: hudson.AbortException 00:00:36.111 at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:91) 00:00:36.111 at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironmentWithoutJobPropertyObject(EnvInjectListener.java:231) 00:00:36.111 at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:46) 00:00:36.111 at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:574) 00:00:36.111 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) 00:00:36.111 at hudson.model.Run.execute(Run.java:1751) 00:00:36.111 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 00:00:36.111 at hudson.model.ResourceController.execute(ResourceController.java:89) 00:00:36.111 at hudson.model.Executor.run(Executor.java:240) 00:00:36.111 Caused by: hudson.AbortException 00:00:36.111 at hudson.tools.JDKInstaller.install(JDKInstaller.java:279) 00:00:36.111 at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:141) 00:00:36.112 at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68) 00:00:36.112 at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) 00:00:36.112 at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:205) 00:00:36.112 at hudson.model.JDK.forNode(JDK.java:130) 00:00:36.112 at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:86) 00:00:36.112 ... 8 more 00:00:36.112 00:00:36.112 Deleting project workspace... 00:00:36.116 Notifying upstream projects of job completion 00:00:36.116 Finished: FAILURE ------------------------------------------------------------------------------- To get my Slave up and running again, I need to re-install the JRE again (because Jenkins wiped it) and restart the Windows Service. Triggering the Jenkins Job will wip the JRE again and reboot the Windows Slave. On one of the Windows Slave, after trying a couple of times, suddenly it did work. But I have no idea why in that case it worked. Manually installing the jdk in the tools directory does work. If after installing it manually I trigger the Jenkins project again, then I tries to install the JDK again, and now it does work... Now in the C:\jenkins_slave\tools\hudson.model.JDK\JDK8u40 there's a .installedByHudson file. Maybe that the manual install changed a JAVA_HOME environment variable? ------------------------------------------------------------------------------- Console output Master of the succeeded build: 00:00:00.006 Started by user Lieven Cardoen 00:00:00.009 [EnvInject] - Loading node environment variables. 00:00:13.086 Installing C:\jenkins_slave\tools\hudson.model.JDK\JDK8u40\jdk.exe 00:00:18.730 [JDK8u40] $ C:\jenkins_slave\tools\hudson.model.JDK\JDK8u40\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\jenkins_slave\tools\hudson.model.JDK\JDK8u40 /L C:\jenkins_slave\tools\hudson.model.JDK\install7252311317026251390log 00:00:52.494 Building remotely on SRV-DEV-GPRO-HYP in workspace C:\jenkins_slave\workspace\SRV-DEV-GPRO-HYP-DEPLOY 00:00:52.495 00:00:52.495 Deleting project workspace... Cloning the remote Git repository 00:00:57.031 remote: Counting objects 00:00:57.147 remote: Finding sources 00:00:57.468 remote: Getting sizes 00:00:57.648 Receiving objects 00:01:04.024 Resolving deltas 00:01:07.916 Updating references 00:01:09.244 Checking out Revision 3b887542dc56ae039098da9648f0839ebecf37d6 (refs/remotes/origin/master) 00:01:20.734 First time build. Skipping changelog. 00:01:22.188 00:01:22.188 Deleting project workspace... 00:01:22.225 done 00:01:22.225 00:01:22.227 Notifying upstream projects of job completion 00:01:22.228 Finished: SUCCESS The log file seems to have vanished... install7252311317026251390log is nowhere to be found. If you need more log files, information, ... please let me know. I can reproduce this every single time on multiple Windows Slaves. Kind regards, Lieven Cardoen
    via by Lieven Cardoen,
  • It seems that the automatic installation of a JDK doesn't work anymore (at least, on Windows 8.1 Pro). The error is: {noformat} Installing C:\jenkins\tools\hudson.model.JDK\JDK17Auto\jdk.exe [JDK17Auto] $ C:\jenkins\tools\hudson.model.JDK\JDK17Auto\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\jenkins\tools\hudson.model.JDK\JDK17Auto /L C:\jenkins\tools\hudson.model.JDK\install4997222534011847136log Failed to install JDK. Exit code=1,618 ERROR: SEVERE ERROR occurs org.jenkinsci.lib.envinject.EnvInjectException: hudson.AbortException at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:91) 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:574) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: hudson.AbortException at hudson.tools.JDKInstaller.install(JDKInstaller.java:279) 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:86) ... 8 more {noformat} If I execute the command {noformat} C:\jenkins\tools\hudson.model.JDK\JDK17Auto\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\jenkins\tools\hudson.model.JDK\JDK17Auto /L {noformat} manually I see Windows Installer "man" instructions, from which I guess that "/s" has been replaced by "/quiet".
    via by Giacomo Boccardo,
  • Problem with downloading html oracle sdk - instead of ask on credential occur again - now for java 8. Started by user anonymous Building in workspace /var/lib/jenkins/jobs/redmineplay/workspace Installing JDK jdk-8-oth-JPR Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz Downloading 5307bytes Installing /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh [JDK] $ /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh -noregister /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 1: html: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 2: head: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 3: title: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 4: META: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 5: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 6: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 7: : command not found /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 8: body: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 9: div: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 10: table: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 11: tr: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: syntax error near unexpected token `<' /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td> ' ERROR: Failed to install JDK. Exit code=2 Archiving artifacts Installing JDK jdk-8-oth-JPR Downloading JDK from http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.tar.gz Downloading 5307bytes Installing /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh [JDK] $ /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh -noregister /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 1: html: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 2: head: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 3: title: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 4: META: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 5: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 6: link: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 7: : command not found /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 8: body: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 9: div: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 10: table: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 11: tr: No such file or directory /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: syntax error near unexpected token `<' /var/lib/jenkins/tools/hudson.model.JDK/JDK/jdk.sh: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td> ' ERROR: Failed to archive artifacts: smtpserver/target/*.tar.gz hudson.AbortException: Failed to install JDK. Exit code=2 at hudson.tools.JDKInstaller.install(JDKInstaller.java:189) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:132) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:204) at hudson.model.JDK.forNode(JDK.java:126) at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:352) at hudson.model.Run.getEnvironment(Run.java:2196) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:871) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:136) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:742) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:714) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:663) at hudson.model.Run.execute(Run.java:1713) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Finished: FAILURE
    via by Andrzej Jóźwik,
  • It seems that the automatic installation of a JDK doesn't work anymore (at least, on Windows 8.1 Pro). The error is: {noformat} Installing C:\jenkins\tools\hudson.model.JDK\JDK17Auto\jdk.exe [JDK17Auto] $ C:\jenkins\tools\hudson.model.JDK\JDK17Auto\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\jenkins\tools\hudson.model.JDK\JDK17Auto /L C:\jenkins\tools\hudson.model.JDK\install4997222534011847136log Failed to install JDK. Exit code=1,618 ERROR: SEVERE ERROR occurs org.jenkinsci.lib.envinject.EnvInjectException: hudson.AbortException at org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:91) 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:574) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: hudson.AbortException at hudson.tools.JDKInstaller.install(JDKInstaller.java:279) 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:86) ... 8 more {noformat} If I execute the command {noformat} C:\jenkins\tools\hudson.model.JDK\JDK17Auto\jdk.exe /s ADDLOCAL="ToolsFeature" REBOOT=ReallySuppress INSTALLDIR=C:\jenkins\tools\hudson.model.JDK\JDK17Auto /L {noformat} manually I see Windows Installer "man" instructions, from which I guess that "/s" has been replaced by "/quiet".
    via by Giacomo Boccardo,
    • hudson.AbortException: Failed to install JDK. Exit code=2 at hudson.tools.JDKInstaller.install(JDKInstaller.java:189) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:132) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:203) at hudson.model.JDK.forNode(JDK.java:122) at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:311) at hudson.model.Run.getEnvironment(Run.java:1993) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:936) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:115) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:810) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:785) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:946) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:732) at hudson.model.Run.execute(Run.java:1568) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)
    No Bugmate found.