org.jenkinsci.lib.envinject.EnvInjectException: hudson.AbortException

Jenkins JIRA | Giacomo Boccardo | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    [JIRA] [core] (JENKINS-29935) Installing JDK on Windows Slave 8.1

    Google Groups | 2 years ago | gboccard@gmail.com (JIRA)
    org.jenkinsci.lib.envinject.EnvInjectException: hudson.AbortException
  2. 0

    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".

    Jenkins JIRA | 2 years ago | Giacomo Boccardo
    org.jenkinsci.lib.envinject.EnvInjectException: hudson.AbortException
  3. 0

    [JENKINS-29935] Installing JDK on Windows Slave 8.1 - Jenkins JIRA

    jenkins-ci.org | 8 months ago
    org.jenkinsci.lib.envinject.EnvInjectException: hudson.AbortException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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".

    Jenkins JIRA | 2 years ago | Giacomo Boccardo
    org.jenkinsci.lib.envinject.EnvInjectException: hudson.AbortException
  6. 0

    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

    Jenkins JIRA | 2 years ago | Lieven Cardoen
    org.jenkinsci.lib.envinject.EnvInjectException: hudson.AbortException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.AbortException

      No message provided

      at hudson.tools.JDKInstaller.install()
    2. Hudson
      JDK.forNode
      1. hudson.tools.JDKInstaller.install(JDKInstaller.java:279)
      2. hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:141)
      3. hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
      4. hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107)
      5. hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:205)
      6. hudson.model.JDK.forNode(JDK.java:130)
      6 frames
    3. org.jenkinsci.plugins
      EnvInjectListener.setUpEnvironment
      1. org.jenkinsci.plugins.envinject.service.EnvInjectVariableGetter.getBuildVariables(EnvInjectVariableGetter.java:86)
      2. org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironmentWithoutJobPropertyObject(EnvInjectListener.java:231)
      3. org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:46)
      3 frames
    4. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:574)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
      3. hudson.model.Run.execute(Run.java:1738)
      3 frames
    5. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:381)
      2 frames