Hi Glenn, I'm happy to look at it in more details - although its gonna be hard without windows :), but could you please open an issue at https://issues.jenkins-ci.org ? Maybe someone on the list (with windows) does have an idea what could be wrong…? regards Domi
On 25.09.2012, at 19:23, Glenn Coombs <glenn.coo...@gmail.com> wrote: > Hi, > > I just downloaded version 1.2.1 of the Node and Label parameter plugin and it > seems to be breaking build steps which use the Windows batch command. I am > running version 1.480 of Jenkins. I created a new free-style job with a Node > parameter specified. I then added a single build step of type "Execute > Windows batch command" with the command as just "ver". When it runs I get > this output: > Started by user anonymous > [EnvInject] - Loading node environment variables. > Building remotely on WINDOWS_SERVER in workspace > C:\jenkins\workspace\update-scripts-all-slaves > [update-scripts-all-slaves] $ cmd /c call > C:\Users\JENKIN~1.SIM\AppData\Local\Temp\hudson7760734931475434766.bat > The parameter is incorrect > FATAL: command execution failed > java.io.IOException: Cannot run program "cmd" (in directory > "C:\jenkins\workspace\update-scripts-all-slaves"): CreateProcess error=87, > The parameter is incorrect > at java.lang.ProcessBuilder.start(Unknown Source) > at hudson.Proc$LocalProc.<init>(Proc.java:244) > at hudson.Proc$LocalProc.<init>(Proc.java:216) > at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) > at hudson.Launcher$ProcStarter.start(Launcher.java:338) > at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:934) > at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:901) > at hudson.remoting.UserRequest.perform(UserRequest.java:118) > at hudson.remoting.UserRequest.perform(UserRequest.java:48) > at hudson.remoting.Request$2.run(Request.java:326) > at > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) > at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) > at java.util.concurrent.FutureTask.run(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > at hudson.remoting.Engine$1$1.run(Engine.java:60) > at java.lang.Thread.run(Unknown Source) > Caused by: java.io.IOException: CreateProcess error=87, The parameter is > incorrect > at java.lang.ProcessImpl.create(Native Method) > at java.lang.ProcessImpl.<init>(Unknown Source) > at java.lang.ProcessImpl.start(Unknown Source) > ... 17 more > Build step 'Execute Windows batch command' marked build as failure > Notifying upstream projects of job completion > Finished: FAILURE > If I change the parameter from type Node to Label instead then it works fine: > Started by user anonymous > [EnvInject] - Loading node environment variables. > Building remotely on WINDOWS_SERVER in workspace > C:\jenkins\workspace\update-scripts-all-slaves > [update-scripts-all-slaves] $ cmd /c call > C:\Users\JENKIN~1.SIM\AppData\Local\Temp\hudson273005172062482740.bat > > C:\jenkins\workspace\update-scripts-all-slaves>ver > > Microsoft Windows [Version 6.1.7601] > > C:\jenkins\workspace\update-scripts-all-slaves>exit 0 > Notifying upstream projects of job completion > Finished: SUCCESS > It also works fine with the Node parameter when running on linux slaves with > a build step of type "Execute shell command" so it appears to only be Windows > batch file execution that is affected. > > Any ideas on how to fix this problem ? > > -- > Glenn >