Problem Execute Shell Script Hudson

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem Execute Shell Script Hudson

eramirez

I am running a script from hudson and I displayed the following error

started
[workspace] $ sh -xe "C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\hudson45689.sh"
FATAL: command execution failed
java.io.IOException: CreateProcess: sh -xe "C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\hudson45689.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: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.tasks.CommandInterpreter.perform(CommandInterpreter.java:35)
        at hudson.model.Build$RunnerImpl.build(Build.java:156)
        at hudson.model.Build$RunnerImpl.doRun(Build.java:124)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:192)
        at hudson.model.Run.run(Run.java:646)
        at hudson.model.Build.run(Build.java:102)
        at hudson.model.ResourceController.execute(ResourceController.java:70)
        at hudson.model.Executor.run(Executor.java:62)
finished: FAILURE


Helpme
Any Idea
Thanks

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Execute Shell Script Hudson

Erik Ramfelt
It seems that you are trying to execute a shell script on a Windows
machine. If you are not running cygwin, you should be using the
"Execute Windows batch" command.


//Erik

On Dec 13, 2007 11:44 PM,  <[hidden email]> wrote:

>
> I am running a script from hudson and I displayed the following error
>
> started
> [workspace] $ sh -xe "C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\hudson45689.sh"
> FATAL: command execution failed
> java.io.IOException: CreateProcess: sh -xe "C:\Program Files\Apache Software Foundation\Tomcat 6.0\temp\hudson45689.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: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.tasks.CommandInterpreter.perform(CommandInterpreter.java:35)
>         at hudson.model.Build$RunnerImpl.build(Build.java:156)
>         at hudson.model.Build$RunnerImpl.doRun(Build.java:124)
>         at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:192)
>         at hudson.model.Run.run(Run.java:646)
>         at hudson.model.Build.run(Build.java:102)
>         at hudson.model.ResourceController.execute(ResourceController.java:70)
>         at hudson.model.Executor.run(Executor.java:62)
> finished: FAILURE
>
>
> Helpme
> Any Idea
> Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Execute Shell Script Hudson

eramirez
In reply to this post by eramirez

Yes, I have windows server 2003 and cygwin, and I execute this script in cygwin and run succesfully but in Hudson not
Any Ideas
Thanks

----- Mensaje original -----
De: Erik Ramfelt <[hidden email]>
Fecha: Viernes, Diciembre 14, 2007 1:23 am
Asunto: Re: Problem Execute Shell Script Hudson

> It seems that you are trying to execute a shell script on a Windows
> machine. If you are not running cygwin, you should be using the
> "Execute Windows batch" command.
>
>
> //Erik
>
> On Dec 13, 2007 11:44 PM,  <[hidden email]> wrote:
> >
> > I am running a script from hudson and I displayed the following
> error>
> > started
> > [workspace] $ sh -xe "C:\Program Files\Apache Software
> Foundation\Tomcat 6.0\temp\hudson45689.sh"
> > FATAL: command execution failed
> > java.io.IOException: CreateProcess: sh -xe "C:\Program
> Files\Apache Software Foundation\Tomcat 6.0\temp\hudson45689.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: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.tasks.CommandInterpreter.perform(CommandInterpreter.java:35)
> >         at hudson.model.Build$RunnerImpl.build(Build.java:156)
> >         at hudson.model.Build$RunnerImpl.doRun(Build.java:124)
> >         at
> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:192)>         at hudson.model.Run.run(Run.java:646)
> >         at hudson.model.Build.run(Build.java:102)
> >         at
> hudson.model.ResourceController.execute(ResourceController.java:70)>         at hudson.model.Executor.run(Executor.java:62)
> > finished: FAILURE
> >
> >
> > Helpme
> > Any Idea
> > Thanks
> >
> > ------------------------------------------------------------------
> ---
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
> --------------------------------------------------------------------
> -
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Execute Shell Script Hudson

Kohsuke Kawaguchi
Administrator
It appears to me that you just don't have sh in the path. You probably
need to configure the full path to sh in the system config screen.

What's mysterious to me is that in a situation like this Hudson is
supposed to print out the error message in more human readable way,
like "The system cannot find the file specified" But you didn't see
that, did you.

I'll see if I can add form-field validation to check if sh exists.

2007/12/14, [hidden email] <[hidden email]>:

>
> Yes, I have windows server 2003 and cygwin, and I execute this script in cygwin and run succesfully but in Hudson not
> Any Ideas
> Thanks
>
> ----- Mensaje original -----
> De: Erik Ramfelt <[hidden email]>
> Fecha: Viernes, Diciembre 14, 2007 1:23 am
> Asunto: Re: Problem Execute Shell Script Hudson
>
> > It seems that you are trying to execute a shell script on a Windows
> > machine. If you are not running cygwin, you should be using the
> > "Execute Windows batch" command.
> >
> >
> > //Erik
> >
> > On Dec 13, 2007 11:44 PM,  <[hidden email]> wrote:
> > >
> > > I am running a script from hudson and I displayed the following
> > error>
> > > started
> > > [workspace] $ sh -xe "C:\Program Files\Apache Software
> > Foundation\Tomcat 6.0\temp\hudson45689.sh"
> > > FATAL: command execution failed
> > > java.io.IOException: CreateProcess: sh -xe "C:\Program
> > Files\Apache Software Foundation\Tomcat 6.0\temp\hudson45689.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: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.tasks.CommandInterpreter.perform(CommandInterpreter.java:35)
> > >         at hudson.model.Build$RunnerImpl.build(Build.java:156)
> > >         at hudson.model.Build$RunnerImpl.doRun(Build.java:124)
> > >         at
> > hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:192)>         at hudson.model.Run.run(Run.java:646)
> > >         at hudson.model.Build.run(Build.java:102)
> > >         at
> > hudson.model.ResourceController.execute(ResourceController.java:70)>         at hudson.model.Executor.run(Executor.java:62)
> > > finished: FAILURE
> > >
> > >
> > > Helpme
> > > Any Idea
> > > Thanks
> > >
> > > ------------------------------------------------------------------
> > ---
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> > --------------------------------------------------------------------
> > -
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Kohsuke Kawaguchi

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Execute Shell Script Hudson

Kohsuke Kawaguchi
Administrator
This is implemented in 1.162.

2007/12/16, Kohsuke Kawaguchi <[hidden email]>:

> It appears to me that you just don't have sh in the path. You probably
> need to configure the full path to sh in the system config screen.
>
> What's mysterious to me is that in a situation like this Hudson is
> supposed to print out the error message in more human readable way,
> like "The system cannot find the file specified" But you didn't see
> that, did you.
>
> I'll see if I can add form-field validation to check if sh exists.
>
> 2007/12/14, [hidden email] <[hidden email]>:
> >
> > Yes, I have windows server 2003 and cygwin, and I execute this script in cygwin and run succesfully but in Hudson not
> > Any Ideas
> > Thanks
> >
> > ----- Mensaje original -----
> > De: Erik Ramfelt <[hidden email]>
> > Fecha: Viernes, Diciembre 14, 2007 1:23 am
> > Asunto: Re: Problem Execute Shell Script Hudson
> >
> > > It seems that you are trying to execute a shell script on a Windows
> > > machine. If you are not running cygwin, you should be using the
> > > "Execute Windows batch" command.
> > >
> > >
> > > //Erik
> > >
> > > On Dec 13, 2007 11:44 PM,  <[hidden email]> wrote:
> > > >
> > > > I am running a script from hudson and I displayed the following
> > > error>
> > > > started
> > > > [workspace] $ sh -xe "C:\Program Files\Apache Software
> > > Foundation\Tomcat 6.0\temp\hudson45689.sh"
> > > > FATAL: command execution failed
> > > > java.io.IOException: CreateProcess: sh -xe "C:\Program
> > > Files\Apache Software Foundation\Tomcat 6.0\temp\hudson45689.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: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.tasks.CommandInterpreter.perform(CommandInterpreter.java:35)
> > > >         at hudson.model.Build$RunnerImpl.build(Build.java:156)
> > > >         at hudson.model.Build$RunnerImpl.doRun(Build.java:124)
> > > >         at
> > > hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:192)>         at hudson.model.Run.run(Run.java:646)
> > > >         at hudson.model.Build.run(Build.java:102)
> > > >         at
> > > hudson.model.ResourceController.execute(ResourceController.java:70)>         at hudson.model.Executor.run(Executor.java:62)
> > > > finished: FAILURE
> > > >
> > > >
> > > > Helpme
> > > > Any Idea
> > > > Thanks
> > > >
> > > > ------------------------------------------------------------------
> > > ---
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > > >
> > >
> > > --------------------------------------------------------------------
> > > -
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>
> --
> Kohsuke Kawaguchi
>


--
Kohsuke Kawaguchi

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

Loading...