Skip to main content

[Hudson-Users] Re: Hudson slave refuses to run builds

  • From: Geoff Waymark <geoff.waymark@...>
  • To: users@...
  • Subject: [Hudson-Users] Re: Hudson slave refuses to run builds
  • Date: Thu, 26 May 2011 10:58:53 +0100

I think you need to add an sh.exe to the Windows 7 slave, Windows 7 doesn't have a sh.exe by default.

Have a look at the instructions here[1] for adding sh to windows, that should help.

[1] http://wiki.hudson-ci.org/display/HUDSON/Installing+Hudson#InstallingHudson-WindowsInstallation

- Geoff

Johan Pretorius wrote:
Hi all

I've installed Hudson master on a Windows 2003 server box and it runs just fine.

I want to connect up a slave running on Windows 7. So I configured it, and it connects just fine, it even talks to Perforce and syncs out the code correctly.

However, then it chokes, and it appears it's looking for sh. Do I need to install sh for this to work?

Also, it appears to be looking for a file that doesn't exist (I checked manually): C:\Users\ADMINI~1\AppData\Local\Temp\hudson54969.sh

Here is the commandline output, can somebody help me out please...

Started by user anonymous
Building remotely on BLD-PAYPAL-WIN7
Using remote perforce client: paypal_dbat-1887396482
[PayPal Sink Node] $ p4 workspace -o paypal_dbat-1887396482
[PayPal Sink Node] $ p4 login -p
[PayPal Sink Node] $ p4 -P F33B3384F1CE51CFF7AE91A7E0463960 workspace -o 
paypal_dbat-1887396482
Last sync'd change: 377634
[PayPal Sink Node] $ p4 -P F33B3384F1CE51CFF7AE91A7E0463960 counter change
[PayPal Sink Node] $ p4 -P F33B3384F1CE51CFF7AE91A7E0463960 -s changes 
//paypal_dbat-1887396482/...@377635,@377717
Sync'ing workspace to changelist 377634.
[PayPal Sink Node] $ p4 -P F33B3384F1CE51CFF7AE91A7E0463960 sync 
//paypal_dbat-1887396482/...@377634
Sync complete, took 187 ms
[PayPal Sink Node] $ sh -xe 
C:\Users\ADMINI~1\AppData\Local\Temp\hudson54969.sh
The system cannot find the file specified
FATAL: command execution failed
java.io.IOException <http://grepcode.com/search?query=java.io.IOException>: 
CreateProcess: sh -xe C:\Users\ADMINI~1\AppData\Local\Temp\hudson54969.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:192)
        at hudson.Proc$LocalProc.<init>(Proc.java:164)
        at hudson.Launcher$LocalLauncher.launch(Launcher.java:638)
        at hudson.Launcher$ProcStarter.start(Launcher.java:273)
        at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:793)
        at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:767)
        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
        at hudson.remoting.Request$2.run(Request.java:270)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at hudson.remoting.Engine$1$1.run(Engine.java:58)
        at java.lang.Thread.run(Thread.java:595)
Finished: FAILURE



--
Johan Pretorius
pretoriusjf@... <mailto:pretoriusjf@...>


[Hudson-Users] Hudson slave refuses to run builds

Johan Pretorius 05/26/2011

[Hudson-Users] Re: Hudson slave refuses to run builds

Geoff Waymark 05/26/2011

[Hudson-Users] Re: Hudson slave refuses to run builds

Johan Pretorius 05/26/2011
 
 
Close
loading
Please Confirm
Close