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

multi-configuration: improved error message when 'sh' cannot be found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • matrix-project-plugin
    • None
    • Platform: All, OS: Windows XP

      When i create multi-configuration project with windows-batch file step - it will
      not execute. It trying to call some .sh file but actually i don't know why here
      is log:

      [default] $ sh -xe C:\DOCUME~1\ILLIA~1.ROM\LOCALS~1\Temp\hudson271712687449516661.sh
      The system cannot find the file specified
      FATAL: command execution failed
      java.io.IOException: Cannot run program "sh" (in directory
      "d:\.hudson\jobs\55\workspace\default"): CreateProcess error=2, The system
      cannot find the file specified
      at java.lang.ProcessBuilder.start(Unknown Source)
      at hudson.Proc$LocalProc.<init>(Proc.java:132)
      at hudson.Proc$LocalProc.<init>(Proc.java:110)
      at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:359)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:342)
      at hudson.Launcher.launch(Launcher.java:175)
      at hudson.Launcher.launch(Launcher.java:127)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:84)
      at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58)
      at hudson.model.Build$RunnerImpl.build(Build.java:195)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:151)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:272)
      at hudson.model.Run.run(Run.java:899)
      at hudson.model.Build.run(Build.java:112)
      at hudson.model.ResourceController.execute(ResourceController.java:93)
      at hudson.model.Executor.run(Executor.java:119)
      Caused by: java.io.IOException: CreateProcess error=2, The system cannot find
      the file specified
      at java.lang.ProcessImpl.create(Native Method)
      at java.lang.ProcessImpl.<init>(Unknown Source)
      at java.lang.ProcessImpl.start(Unknown Source)
      ... 16 more

      When i create simple project it works fine

            Unassigned Unassigned
            ilyaromanenko ilyaromanenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: