Issue Details (XML | Word | Printable)

Key: HUDSON-985
Type: Bug Bug
Status: Reopened Reopened
Priority: Major Major
Assignee: kohsuke
Reporter: stephenconnolly
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Hudson

Cannot create process on windows

Created: 07/Nov/07 02:56 AM   Updated: 21/Jul/10 11:29 PM
Component/s: batch-task
Affects Version/s: current
Fix Version/s: None

Environment: Platform: All, OS: Windows XP


 Description  « Hide

Hudson 1.153
BatchTask 1.0

Getting the following when trying to use the batch task plugin on Windows

[workspace] $ sh -xe C:\hudson48765.sh
command execution failed
java.io.IOException: CreateProcess: sh -xe C:\hudson48765.sh error=2
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at hudson.Proc$LocalProc.<init>(Proc.java:80)
at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:290)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:281)
at hudson.Launcher.launch(Launcher.java:119)
at hudson.Launcher.launch(Launcher.java:71)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:61)
at hudson.plugins.batch_task.BatchRun.run(BatchRun.java:209)
at hudson.model.ResourceController.execute(ResourceController.java:70)
at hudson.model.Executor.run(Executor.java:62)



Sort Order: Ascending order - Click to sort in descending order
redsolo added a comment - 15/Nov/07 01:42 AM

I will start look into this as we must have this functionality on our windows
machines.


redsolo added a comment - 15/Nov/07 03:06 PM

Fixed so if the node is running windows a batchFile command will be used instead
of a Shell command.


basiep added a comment - 21/Jul/10 11:25 PM - edited

I still have this issue running hudson 1.355 on a windows 2003 server (Enterprise SP2). I don't have cygwin installed.
i use (as you can see) Tomcat 6

FATAL: uitvoeren commando gefaald
java.io.IOException: CreateProcess: sh -xe "C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\hudson54499.sh" error=2
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(Proc.java:149)
at hudson.Proc$LocalProc.<init>(Proc.java:121)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:636)
at hudson.Launcher$ProcStarter.start(Launcher.java:271)
at hudson.Launcher$ProcStarter.join(Launcher.java:278)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:83)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:584)
at hudson.model.Build$RunnerImpl.build(Build.java:174)
at hudson.model.Build$RunnerImpl.doRun(Build.java:138)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
at hudson.model.Run.run(Run.java:1244)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:122)