From acc88713a291e1112e632a33c9824243cb4623f8 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Sat, 31 Oct 2020 19:12:44 +0000 Subject: [PATCH] Add missing cmd validation --- make.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/make.ps1 b/make.ps1 index 9155ae4398..c597bfecf7 100644 --- a/make.ps1 +++ b/make.ps1 @@ -124,6 +124,9 @@ if($target -eq "publish") { Write-Host "Publishing $Build => tag=$tag" $cmd = "docker push {0}/{1}:{2}" -f $Organization, $Repository, $tag Invoke-Expression $cmd + if($lastExitCode -ne 0) { + $publishFailed = 1 + } if($PushVersions) { $buildTag = "$JenkinsVersion-$tag"