Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
Description
Hi,
Since 1.472, calling AbstractBuild.getEnvironment(TaskListener) returns a EnvVars with EnvVars.platform unset.
Since EnvVars.override uses EnvVars.platform (and default to UNIX style PATH separator if EnvVars.platform is null), it does not work anymore for Windows slaves.
Thanks!
Attachments
Issue Links
- is duplicated by
-
JENKINS-49673 Auto-installation use wrong PATH separator
-
- Closed
-
- is related to
-
JENKINS-16176 ShiningPanda PATH update uses wrong separator on Windows
-
- Open
-
This 2012 bug hit again (nodejs plugin).
It break all SimpleBuildWrapper that override PATH+VAR launched on node with different platform (Unix->Windows and vs).
The issue seems to be in Run#getEnvironment(TaskListener) that returns an enviroment EnvVars not built from Computer class (the unique way to have platform field setup correctly)
I think that something similar fix the issue
untill a fix is released my dirty workaround is create a EnvironmentContributor that by reflection inject correct platform value