From c75a8f293899ceb6d8b334623d9a30c340b58370 Mon Sep 17 00:00:00 2001 From: kellyyangsong <69649063+kellyyangsong@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:03:28 -0800 Subject: [PATCH] =?UTF-8?q?Add=20Warning=20Quality=20Check=20Build=20Task?= =?UTF-8?q?=20=F0=9F=94=A8=20(#3067)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add warning policy * fix indenting --- 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..5679908a29 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'))