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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e613e539-156f-40cf-9288-b97b74cb9b42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to