Hi Jorge, Kohsuke, Now I am getting a different error as below:
[D:\Jenkins\jobs\BUILD-DEPLOY-TEST-CERTIFY-WF\workspace] Running shell script cygwin warning: MS-DOS style path detected: D:\Jenkins\jobs\BUILD-DEPLOY-TEST-CERTIFY-WF\workspace\.dddf1bf9\pid Preferred POSIX equivalent is: /cygdrive/d/Jenkins/jobs/BUILD-DEPLOY-TEST-CERTIFY-WF/workspace/.dddf1bf9/pid CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames sh: D:\Jenkins\jobs\BUILD-DEPLOY-TEST-CERTIFY-WF\workspace\.dddf1bf9\script.sh: command not found I am not calling script.sh.Also I am not sure how this .dddf1bf9 folder is getting created. Can you advise on this? 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/99955a08-35f0-4b35-bf14-82727bf992eb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.