Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-985

Cannot create process on windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: batch-task-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: Windows XP
    • Similar Issues:

      Description

      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)

        Attachments

          Activity

          Hide
          redsolo redsolo added a comment -

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

          Show
          redsolo redsolo added a comment - I will start look into this as we must have this functionality on our windows machines.
          Hide
          redsolo redsolo added a comment -

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

          Show
          redsolo redsolo added a comment - Fixed so if the node is running windows a batchFile command will be used instead of a Shell command.
          Hide
          basiep basiep added a comment - - 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)

          Show
          basiep basiep added a comment - - 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)
          Hide
          evernat evernat added a comment -

          Hi basiep,
          Any news on this?

          Show
          evernat evernat added a comment - Hi basiep, Any news on this?
          Hide
          evernat evernat added a comment -

          No response from basiep, so closing this issue again as fixed.

          Show
          evernat evernat added a comment - No response from basiep, so closing this issue again as fixed.

            People

            • Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              stephenconnolly Stephen Connolly
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: