From 63d1a3a689b8bf662f18580cba336fdf9919a554 Mon Sep 17 00:00:00 2001 From: dotnet-docker-bot <60522487+dotnet-docker-bot@users.noreply.github.com> Date: Wed, 22 Jul 2020 07:36:10 -0500 Subject: [PATCH] Update common Docker engineering infrastructure with latest (#2112) --- eng/common/Invoke-ImageBuilder.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eng/common/Invoke-ImageBuilder.ps1 b/eng/common/Invoke-ImageBuilder.ps1 index 93a0fe52cb..3ba85786bb 100644 --- a/eng/common/Invoke-ImageBuilder.ps1 +++ b/eng/common/Invoke-ImageBuilder.ps1 @@ -48,6 +48,8 @@ function Exec { Log "Executing: '$Cmd'" Invoke-Expression $Cmd if ($LASTEXITCODE -ne 0) { + $host.SetShouldExit($LASTEXITCODE) + exit $LASTEXITCODE throw "Failed: '$Cmd'" } }