shell executor reports successful build after first script, skips others
When running the shell executor on a windows machine, only the first command is ever executed. The return code of this command will be used. This happens even for commands in the before_script
portion of .gitlab-ci.yml
.
An example config
before_script:
- npm install --silent
stages:
- test
lint:
stage: test
tags:
- javascript
script:
- eslint */**
With the above config, the runner exits reporting a successful build after the npm install --silent
step. The lint
step is never executed. Removing the before_script
block results in the lint
script being executed.
Specifying shell = "powershell"
in the config.toml file results in the expected behavior where all scripts are run.