Skip to main content

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

  • From: Johan Pretorius <pretoriusjf@...>
  • To: users@...
  • Subject: [Hudson-Users] Re: Hudson slave refuses to run builds
  • Date: Thu, 26 May 2011 12:04:54 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=RM5C0P9W8v/v6rkJPe3/7DuzfHE3C0uS6P90G2Z0A9aMkM0mthwFgpoojTktio1oUj g9I90Jqa5QLZxVZ/6KnAbDWfM/3drAPn0i+cRKSzEsu5OZQLK8qZDDsMpx2yDc4roVfx cE2mQr2eDwKSUKKG+d12EFrvdQp5R1dP5V0cU=

Thanks, Geoff... actually, I just found another "Run Build Step" option, that allows for a "Windows bach command" to be run.  My bad...

On Thu, May 26, 2011 at 11:58 AM, Geoff Waymark <geoff.waymark@...> wrote:
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.


- 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\

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\
The system cannot find the file specified
FATAL: command execution failed <>: CreateProcess: sh -xe C:\Users\ADMINI~1\AppData\Local\Temp\ error=2

       at java.lang.ProcessImpl.create(Native Method)
       at java.lang.ProcessImpl.<init>(
       at java.lang.ProcessImpl.start(
       at java.lang.ProcessBuilder.start(
       at hudson.Proc$LocalProc.<init>(
       at hudson.Proc$LocalProc.<init>(
       at hudson.Launcher$LocalLauncher.launch(
       at hudson.Launcher$ProcStarter.start(
       at hudson.Launcher$
       at hudson.Launcher$
       at hudson.remoting.UserRequest.perform(
       at hudson.remoting.UserRequest.perform(
       at hudson.remoting.Request$
       at java.util.concurrent.Executors$
       at java.util.concurrent.FutureTask$Sync.innerRun(
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
       at java.util.concurrent.ThreadPoolExecutor$
       at hudson.remoting.Engine$1$
Finished: FAILURE

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

Johan Pretorius
Cell: 0829268327

[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
Please Confirm