-
Bug
-
Resolution: Fixed
-
Major
-
Reproducible with Windows master, Linux slaves
RemoteLauncher's isUnix attribute is supplied on construction for slaves. However, when the RemoteLauncher is passed through decorateByEnv, because the anonymous class created in this method does not override isUnix, it delegates back to the base Launcher's File.pathSeparatorChar==':' check. The value for the slave passed into RemoteLauncher on construction is lost. A similar problem occurs with decorateByPrefix.
This will cause a problem if any downstream logic depends on the Launcher's isUnix value for a process launched on a slave with a different isUnix value than the master. For example, with a Windows master and a Linux slave, the wrong file path separator is selected in a regex on the history output, and so the SCM polling does not accurately pick up changes.
- is related to
-
JENKINS-3496 Launcher.isUnix uses master OS, not Slave OS
- Closed
-
JENKINS-13285 customtools-plugin does not delegate the Launcher.isUnix() call in DecoratedLauncher
- Closed
-
JENKINS-12911 Clearecase Plugin Not Detecting Changes
- Closed
-
JENKINS-15585 If you have a windows master, linux slave, the grails plugin tries to run grails as using windows slashes and the bat file as executable
- Resolved