Docs feedback: Shells supported by GitLab Runner
Problem to solve
The example PowerShell wrapper script on this page can't be correct. The ErrorActionPreference is Continue
. Can you update it?
https://docs.gitlab.com/runner/shells/#powershell
Further details
I have a small job running on a Windows 10 runner with PowerShell.
build:
stage: build
script:
- 'Write-Host "Error Action Preference: $ErrorActionPreference"'
Running with gitlab-runner 11.11.0~beta.1345.g56fcfdba (56fcfdba)
on DESKTOP-VMN6K6H dFue64Cz
Using Shell executor...
Running on DESKTOP-VMN6K6H...
...
$ Write-Host "Error Action Preference: $ErrorActionPreference"
Error Action Preference: Continue
https://gitlab.com/anthony.mastrean-vaeit/gitlab-runner-examples/-/jobs/201899305
Proposal
Furthermore, where did you get this example? Who is generating these? Can I check one of these scripts on my own runner? They seem to disappear no matter what the status of a job (and I don't feel like breaking out sysinternals power tools to capture file handle activity).
Who can address the issue
Other links/references
Related to gitlab-runner#3965 (closed)
Edited by Ghost User