From ff02dc4ff4b1aa4b8c4fdcde7dac5fed3edc5dde Mon Sep 17 00:00:00 2001 From: Kelly Song Date: Thu, 19 Dec 2024 15:19:04 -0800 Subject: [PATCH 1/2] add warning policy --- build/template-Build-run-tests-sign.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/template-Build-run-tests-sign.yml b/build/template-Build-run-tests-sign.yml index f9e0b1d5e1..7c7f8ba78e 100644 --- a/build/template-Build-run-tests-sign.yml +++ b/build/template-Build-run-tests-sign.yml @@ -212,6 +212,13 @@ steps: PathtoPublish: '$(Build.SourcesDirectory)\artifacts' ArtifactName: '$(Build.BuildNumber)-nuget-package' + - task: BuildQualityChecks@9 + displayName: 'Check Warnings' + inputs: + checkWarnings: true + warningFailOption: 'build' + showStatistics: true + - task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3 displayName: 'Clean Agent Directories' condition: and(succeeded(), eq(variables['PipelineType'], 'legacy')) From 12282d19aa788a76a05fe7d87357594f702e3ebc Mon Sep 17 00:00:00 2001 From: Kelly Song Date: Thu, 19 Dec 2024 15:49:08 -0800 Subject: [PATCH 2/2] fix indenting --- build/template-Build-run-tests-sign.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build/template-Build-run-tests-sign.yml b/build/template-Build-run-tests-sign.yml index 7c7f8ba78e..5679908a29 100644 --- a/build/template-Build-run-tests-sign.yml +++ b/build/template-Build-run-tests-sign.yml @@ -213,11 +213,11 @@ steps: ArtifactName: '$(Build.BuildNumber)-nuget-package' - task: BuildQualityChecks@9 - displayName: 'Check Warnings' - inputs: - checkWarnings: true - warningFailOption: 'build' - showStatistics: true + displayName: 'Check Warnings' + inputs: + checkWarnings: true + warningFailOption: 'build' + showStatistics: true - task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3 displayName: 'Clean Agent Directories'