[Issue 3426] New - multi-configuration problem with windows batch files

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 3426] New - multi-configuration problem with windows batch files

ilyaromanenko
https://hudson.dev.java.net/issues/show_bug.cgi?id=3426
                 Issue #|3426
                 Summary|multi-configuration problem with windows batch files
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|Windows XP
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P1
            Subcomponent|matrix
             Assigned to|issues@hudson
             Reported by|ilyaromanenko






------- Additional comments from [hidden email] Mon Apr  6 07:32:42 +0000 2009 -------
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

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3426] multi-configuration problem with windows batch files

ilyaromanenko
https://hudson.dev.java.net/issues/show_bug.cgi?id=3426






------- Additional comments from [hidden email] Fri Apr 10 09:21:45 +0000 2009 -------
sorry for this - i've just selected shell - not windows batch script

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3426] multi-configuration: improved error message when 'sh' cannot be found

mdonohue
In reply to this post by ilyaromanenko
https://hudson.dev.java.net/issues/show_bug.cgi?id=3426



User mdonohue changed the following:

                What    |Old value                 |New value
================================================================================
                 Summary|multi-configuration proble|multi-configuration: impro
                        |m with windows batch files|ved error message when 'sh
                        |                          |' cannot be found
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Fri Apr 10 15:32:21 +0000 2009 -------
It sounds like the original report is no longer an issue for you, but we should
be able to generate a cleaner error message in cases like this.  

This seems particularly likely for a multi-configuration project, but is
applicable to freestyle builds as well.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3426] multi-configuration: improved error message when 'sh' cannot be found

Kohsuke Kawaguchi
Administrator
In reply to this post by ilyaromanenko
https://hudson.dev.java.net/issues/show_bug.cgi?id=3426



User kohsuke changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
                Priority|P1                        |P3
--------------------------------------------------------------------------------
              Resolution|                          |INVALID
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Thu Jul  9 20:35:34 +0000 2009 -------
I'm not sure how the error message can be improved any further, but if someone
has a proposal, please open a different issue.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]