Skip to content
Permalink
Browse files
[FIXED JENKINS-25678] Quote arguments in case we are running in a dir…
…ectory whose name contains spaces.
  • Loading branch information
jglick committed Mar 5, 2015
1 parent bf5101c commit 1a937ee6ca37e547865adfafadfb0a27a2216d77
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/jenkinsci/plugins/durabletask/WindowsBatchScript.java
@@ -52,7 +52,7 @@ public String getScript() {
}
BatchController c = new BatchController(ws);

c.getBatchFile1(ws).write(String.format("call %s > %s 2>&1\r\necho %%ERRORLEVEL%% > %s\r\n",
c.getBatchFile1(ws).write(String.format("call \"%s\" > \"%s\" 2>&1\r\necho %%ERRORLEVEL%% > \"%s\"\r\n",
c.getBatchFile2(ws),
c.getLogFile(ws),
c.getResultFile(ws)

0 comments on commit 1a937ee

Please sign in to comment.