can't build on windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

can't build on windows

N Daley
I'm getting this exception on this Windows XP build machine since I upgraded to 1.82.  I started using the master/slave arch.

From the Console log:

<checkout messages>
...
[trunk] $ ant -Dtest.junit.output.format=xml -Dtest.output=yes clean compile test tar
FATAL: command execution failed
java.io.IOException: CreateProcess: ant -Dtest.junit.output.format=xml -Dtest.output=yes clean compile test tar 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 java.lang.Runtime.exec(Runtime.java:591)
    at hudson.Proc$LocalProc.<init>(Proc.java:79)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:130)
    at hudson.model.Slave$RemoteLaunchCallable.call(Slave.java:478)
    at hudson.model.Slave$RemoteLaunchCallable.call(Slave.java:462)
    at hudson.remoting.UserRequest.perform(UserRequest.java:57)
    at hudson.remoting.UserRequest.perform(UserRequest.java:22)
    at hudson.remoting.Request$2.run(Request.java:168)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
    at java.lang.Thread.run(Thread.java:595)

When I ssh to this machine, ant is in the path at /cygdrive/c/apache-ant-1.6.5/bin/ant

Cheers,
Nige




 
____________________________________________________________________________________
Never Miss an Email
Stay connected with Yahoo! Mail on your mobile.  Get started!
http://mobile.yahoo.com/services?promote=mail

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

Reply | Threaded
Open this post in threaded view
|

Re: can't build on windows

Kohsuke Kawaguchi-2

I just changed Hudson so that even on Unix master I report the human
readable version of the Win32 error code. Win32 error code 2 that you
are seeing is "The system cannot find the file specified", and I suspect
this is because your Windows slave does not have "ant.bat".

Even though you installed cygwin on it, you can only launch shell
scripts from other cygwin processes, and Hudson slave agent is not one
of them.

Also, check the slave information page and see what you have in your
PATH. Depending on how you launch the slave agent, it might see PATH
that are different from what you see in interactive ssh login.

N Daley wrote:

> I'm getting this exception on this Windows XP build machine since I upgraded to 1.82.  I started using the master/slave arch.
>
>>From the Console log:
>
> <checkout messages>
> ..
> [trunk] $ ant -Dtest.junit.output.format=xml -Dtest.output=yes clean compile test tar
> FATAL: command execution failed
> java.io.IOException: CreateProcess: ant -Dtest.junit.output.format=xml -Dtest.output=yes clean compile test tar 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 java.lang.Runtime.exec(Runtime.java:591)
>     at hudson.Proc$LocalProc.<init>(Proc.java:79)
>     at hudson.Launcher$LocalLauncher.launch(Launcher.java:130)
>     at hudson.model.Slave$RemoteLaunchCallable.call(Slave.java:478)
>     at hudson.model.Slave$RemoteLaunchCallable.call(Slave.java:462)
>     at hudson.remoting.UserRequest.perform(UserRequest.java:57)
>     at hudson.remoting.UserRequest.perform(UserRequest.java:22)
>     at hudson.remoting.Request$2.run(Request.java:168)
>     at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>     at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>     at java.lang.Thread.run(Thread.java:595)
>
> When I ssh to this machine, ant is in the path at /cygdrive/c/apache-ant-1.6.5/bin/ant
>
> Cheers,
> Nige
>
>
>
>
>  
> ____________________________________________________________________________________
> Never Miss an Email
> Stay connected with Yahoo! Mail on your mobile.  Get started!
> http://mobile.yahoo.com/services?promote=mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment