From 165e85dd84935c02700a19bbc33f6d49b78950a4 Mon Sep 17 00:00:00 2001 From: Ray Chen Date: Wed, 14 Jun 2023 11:07:38 +0800 Subject: [PATCH] Update Invoke-GenerateAndBuildV2.ps1 --- eng/scripts/Invoke-GenerateAndBuildV2.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/scripts/Invoke-GenerateAndBuildV2.ps1 b/eng/scripts/Invoke-GenerateAndBuildV2.ps1 index 43d66f1b8ac7f..ea7573d13b8a6 100644 --- a/eng/scripts/Invoke-GenerateAndBuildV2.ps1 +++ b/eng/scripts/Invoke-GenerateAndBuildV2.ps1 @@ -117,10 +117,10 @@ if ($relatedTypeSpecProjectFolder) { $sdkProjectFolder = & $processScript $typespecFolder $commitid $repoHttpsUrl -SkipSyncAndGenerate if ($LASTEXITCODE) { # If Process script call fails, then return with failure to CI and don't need to call GeneratePackage - $generatedSDKPackages = @{ + $generatedSDKPackages.Add(@{ result = "failed"; path=@(""); - } + }) } else { $relativeSdkPath = Resolve-Path $sdkProjectFolder -Relative GeneratePackage `