When trying to use "sh" as an executor, it fails on z/OS as by default it uses option "-l" which is not available in z/OS USS sh implementation.
It uses "-L" instead. According gitlab runner documentation, this option is forced.
To make it compatible with z/OS bourne shell, the code change might be needed?
z/OS allowed options:
`Format
[r]sh [B1abCefhiKkLmnPprtuvx] [B1o option] [cmd_file [argument ...]]
[r]sh -S [B1abCefhiKkLmnPprtuvx] [B1o option] [cmd_file [argument ...]]
[r]sh -c cmdstring [B1abCefhiKkLmnPprtuvx] [B1o option] [cmd_name [argument ...]]
[r]sh -s [B1abCefhikLmnPprtuvx] [B1o option] [argument ...]
-L
Makes the shell a login shell,. (A login shell is an interactive
shell.)
`