-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
https://support.cloudbees.com/hc/en-us/articles/215171038
sh "..." allocate default shell and then execute script according to shabang
But there is no way to change shell for 'sh' statement . And that's an issue.
It could be useful to overwrite default shell for example with:
sh "script: 'ls -l' shell: '/bin/sh'"