From the help/question mark icon of the “Execute shell” section:
Runs a shell script (defaults to sh, but this is configurable) for
building the project.
If you go to Manage Jenkins –> Configure System you will find an option (called “Shell executable”) to set the name or absolute path to the shell that you want your shell scripts to use…
For my system without configuring this option… it uses bash!