From cdf75f2ab432a35bc042f6f5ca9af88c325f9d96 Mon Sep 17 00:00:00 2001 From: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com> Date: Wed, 29 Jun 2022 18:31:58 +0800 Subject: [PATCH] Improve stability of pipeline (#18814) * Improve pipeline stable * Improve pipeline stable --- .azure-pipelines/util/build-steps.yml | 1 + tools/PrepareAutorestModule.ps1 | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.azure-pipelines/util/build-steps.yml b/.azure-pipelines/util/build-steps.yml index fc640bba7076..c65c2b696efe 100644 --- a/.azure-pipelines/util/build-steps.yml +++ b/.azure-pipelines/util/build-steps.yml @@ -57,6 +57,7 @@ steps: targetType: inline script: "$SdkVersion=(dotnet --list-sdks | Select-String '6.0.\\d{3}').Matches[0].Value; dotnet new globaljson --sdk-version $SdkVersion --force;dotnet msbuild tools/Az.Tools.Predictor/build.proj /t:\"clean;build;test\"" pwsh: true + continueOnError: true - template: publish-artifacts-steps.yml parameters: diff --git a/tools/PrepareAutorestModule.ps1 b/tools/PrepareAutorestModule.ps1 index 1cbd57e8b02d..d9f266d5100b 100644 --- a/tools/PrepareAutorestModule.ps1 +++ b/tools/PrepareAutorestModule.ps1 @@ -77,6 +77,11 @@ Copy-Item -Path "$TmpFolder\tools\Common*.targets" -Destination "$PSScriptRoot\. Install-Module Az.Accounts -Repository PSGallery -Force Import-Module Az.Accounts Copy-Item "$PSScriptRoot\..\src\*.props" $TmpFolder + +If ($ModuleSet.Contains("Compute")) +{ + Copy-Item -Path "$TmpFolder\src\Resources\Resources.Test" -Destination "$PSScriptRoot\..\src\Resources\Resources.Test" -Force -Recurse +} #EndRegion #Region generate the code and make the struture same with main branch.