-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 1.533
Master is OSX 10.8.5
Slave is Windows 7 Enterprise
Slave started by JNLP (service)
This is what I get:
Started by upstream project "wintest" build number 1
originally caused by:
Started by user Gabor Csardi
Building remotely on win7 in workspace c:\jenkins\workspace\wintest\label\win7
FATAL: command execution failed
hudson.util.IOException2: Failed to locate Cygwin installation. Is Cygwin installed?
at hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.getCygwinRoot(CygpathLauncherDecorator.java:138)
Cygwin is installed and the required registry entry seems to be in place:
c:\Users\vagrant>reg query HKLM\Software\Cygwin\setup /v rootdir HKEY_LOCAL_MACHINE\Software\Cygwin\setup rootdir REG_SZ C:\cygwin
I am a little lost on what could go wrong here. Maybe because I use the SYSTEM user gets a different result for the registry query? Sounds silly, but I don't know much about registry.
Job is as simple as
#!/bin/bash hostname
[JENKINS-20364] Failed to locate cygwin installation
Description |
Original:
This is what I get: {code} Started by upstream project "wintest" build number 1 originally caused by: Started by user Gabor Csardi Building remotely on win7 in workspace c:\jenkins\workspace\wintest\label\win7 FATAL: command execution failed hudson.util.IOException2: Failed to locate Cygwin installation. Is Cygwin installed? at hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.getCygwinRoot(CygpathLauncherDecorator.java:138) {code} Cygwin is installed and the required registry entry seems to be in place: {code} c:\Users\vagrant>reg query HKLM\Software\Cygwin\setup /v rootdir HKEY_LOCAL_MACHINE\Software\Cygwin\setup rootdir REG_SZ C:\cygwin {code} I am a little lost on what could go wrong here. Maybe because I use the SYSTEM user gets a different result for the registry query? Sounds silly, but I don't know much about registry. |
New:
This is what I get: {code} Started by upstream project "wintest" build number 1 originally caused by: Started by user Gabor Csardi Building remotely on win7 in workspace c:\jenkins\workspace\wintest\label\win7 FATAL: command execution failed hudson.util.IOException2: Failed to locate Cygwin installation. Is Cygwin installed? at hudson.plugins.cygpath.CygpathLauncherDecorator$GetCygpathTask.getCygwinRoot(CygpathLauncherDecorator.java:138) {code} Cygwin is installed and the required registry entry seems to be in place: {code} c:\Users\vagrant>reg query HKLM\Software\Cygwin\setup /v rootdir HKEY_LOCAL_MACHINE\Software\Cygwin\setup rootdir REG_SZ C:\cygwin {code} I am a little lost on what could go wrong here. Maybe because I use the SYSTEM user gets a different result for the registry query? Sounds silly, but I don't know much about registry. Job is as simple as {code} #!/bin/bash hostname {code} |
Workflow | Original: JNJira [ 151888 ] | New: JNJira + In-Review [ 178098 ] |
OK, one workaround is to do the following.
1. Run the jenkins service as a "normal" user, edit this in "local services" in windows. Apparently things go wild if you use cygwin as the SYSTEM user. This is on the slave, of course.
2. Remove the #!/bin/bash shebang line from the first line of the script.
This works, although it is not very stable, the slave gets disconnected often, and the job gets killed. But this is probably another issue.