Alex Okrushko
commented on JENKINS-15475
CreateProcess error=87, The parameter is incorrect
I have the same problem, however this happens only on master and only when I use in combination with Node and Label parameter plugin (e.g. set the node as "master"):
Started by upstream project "run_everywhere" build number 21
originally caused by:
Started by user alexo
[EnvInject] - Loading node environment variables.
Building on master in workspace C:\Users\alexo\jenkins\jobs\run_cmd\workspace\default
Updating https://server.com/trunk/ to revision '2012-10-24T11:59:51.563 -0400'
At revision 60
[default] $ cmd /c call C:\Windows\TEMP\hudson8635809542653204475.bat
The parameter is incorrect
FATAL: command execution failed
java.io.IOException: Cannot run program "cmd" (in directory "C:\Users\alexo\jenkins\jobs\run_cmd\workspace\default"): CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.(Proc.java:244)
at hudson.Proc$LocalProc.(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:716)
at hudson.Launcher$ProcStarter.start(Launcher.java:345)
at hudson.Launcher$ProcStarter.join(Launcher.java:352)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:82)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1502)
at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 17 more
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira