Skip to content
Permalink
Browse files

Merge pull request #20 from jglick/JENKINS-14515-pathsep

[FIXED JENKINS-14515] Incorrect path separator used on Win slave from Unix master
  • Loading branch information...
oleg-nenashev committed Sep 19, 2014
2 parents 8b09f8b + 6698c8f commit 6f337351a7450d1a29139d9045805a762fae51e5
@@ -228,6 +228,8 @@ public Proc launch(ProcStarter starter) throws IOException {
vars = toEnvVars(starter.envs());
} catch (NullPointerException npe) {
vars = new EnvVars();
} catch (InterruptedException x) {
throw new IOException(x);
}

// Inject paths
@@ -253,8 +255,8 @@ public Proc launch(ProcStarter starter) throws IOException {
return getInner().launch(starter.envs(vars));
}

private EnvVars toEnvVars(String[] envs) {
EnvVars vars = new EnvVars();
private EnvVars toEnvVars(String[] envs) throws IOException, InterruptedException {
EnvVars vars = node.toComputer().getEnvironment();
for (String line : envs) {
vars.addLine(line);
}

0 comments on commit 6f33735

Please sign in to comment.
You can’t perform that action at this time.