Allow to choose shell in .gitlab-ci.yml
Problem to solve
Only the default shell can be used for your script.
Intended users
Developers.
Further details
Sometimes you want to use a more advanced shell for more advanced scripts, such as Fish or Plumbum.
Proposal
I can think of 2 options:
-
Add a
script_shell
key (and possiblybefore_script_shell
andafter_script_shell
). -
If a script starts with a shebang, use that:
myjob: script: - echo normal script - | #!/usr/bin/python print("special script")
Permissions and Security
N/A
Documentation
It should be added to https://docs.gitlab.com/ce/ci/yaml/
Testing
Add a test using a separate shell.
What does success look like, and how can we measure that?
Success would be if the feature works... I guess