From: Magnus Jacobsson Date: Fri, 14 Aug 2020 12:55:30 +0000 (+0200) Subject: Make the Windows pipeline stop on PowerShell cmdlet failure X-Git-Tag: 2.46.0~20^2^2~120^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=508125881a0bf61ec2a778e31e43ac83f3a42b2c;p=graphviz Make the Windows pipeline stop on PowerShell cmdlet failure Note that this doesn't affect failures from .exe programs (but that is already handled by the GitLab Shared Windows Runner). See https://stackoverflow.com/questions/9948517/how-to-stop-a-powershell-script-on-the-first-error. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bca8d9ac6..fd3b345bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,6 +56,7 @@ portable-source: stage: build needs: [] script: + - $ErrorActionPreference = "Stop" # Toolchain definitions - if($env:platform -eq "x64") { $TARGET_ARCH = "x64";