Thanks. Both of you are right. I missed checking configuration on Slave. Corrected it now and its working fine.
Regards, Rupali On Wednesday, November 26, 2014 5:53:49 PM UTC+5:30, 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/c700eba9-47cc-4e83-ba49-ce98b7f72675%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.