Make sure that when the slave starts it has the path of all the cygwin 
binaries (path to nohup.exe)

On Wednesday, November 26, 2014 1:23:49 PM UTC+1, Rupali wrote:
>
> I am trying to run a shell script on Windows Server.
> Usually we set start line in shell script as "#!d:\cygwin\bin\bash.exe -l" 
> to point to bash under cygwin.
> This is not working in work-flow step.
> *I have written shell script execution step as below:*
> sh '''#!d:\\cygwin\\bin\\bash.exe -l
>
> cd $WORKSPACE
> perl engine/deploy.pl
> exit $?'''
>
> *I get below error:*
>
> java.io.IOException: Cannot run program "nohup" 
>
> CreateProcess error=2, The system cannot find the file specified
>
> I have written shell script execution step as below:
>
> Can you advise on how do I setup path to cygwin here so that it can find 
> the required shell script commands?
> Note: cygwin is already included in system path variable.
>
> Regards,
> Rupali
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/eb4b541b-c8b9-4e51-8443-647b041c3bfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to