to change the exec that is used in "Execute Shell" on a windows based server (jenkins running on windows or a jenkins slave running on windows) you cannot use:
#!/bin/bash as you get the error stated. it appears that jenkins takes whatever is after the #! and adds that to the command line that gets executed in a windows cmd. so, on a windows machine you can do this: #!c:\cygwin\bin\bash or put any path and executable after the #! to be used. i use this quite a bit to get rid of the -xe parameter passed to bash. now, on another not it would be much better if jenkins provided a setting to drop the -xe when executing a script ... schleprock -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Running-a-shell-script-in-Windows-tp1561956p4677167.html Sent from the Jenkins users mailing list archive at Nabble.com. -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
