Hi Denis,
Thank you for responding but I'm taking here about overwriting global configuration for single 'sh' statement which is currently not passible.
The plugins that provide `sh` step should recognize the "Shell executable" setting in the Manage Jenkins > Configure System. Note that the setting will change the default shell for other project types as well.
Comments
4 comments
Hi Denis,
Thank you for responding but I'm taking here about overwriting global configuration for single 'sh' statement which is currently not passible.
sh "..." will 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.
Hi Grzegorz,
The plugins that provide `sh` step should recognize the "Shell executable" setting in the Manage Jenkins > Configure System. Note that the setting will change the default shell for other project types as well.
I was hoping to find an example with zsh. I'll have to hope that it's the same as ksh.
Please sign in to leave a comment.