Skip to content

Commit 33c5f34

Browse files
committed
Enable build.ps1 -warnAsError in at least one CI leg
`build.sh --warnaserror` is already enabled in another CI leg.
1 parent 8303b4a commit 33c5f34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,12 @@ stages:
436436
steps:
437437
- template: eng/pipelines/checkout-windows-task.yml
438438

439-
- powershell: eng/build.ps1 -configuration Release -prepareMachine -ci -restore -binaryLogName Restore.binlog
439+
- powershell: eng/build.ps1 -configuration Release -prepareMachine -ci -restore -warnAsError -binaryLogName Restore.binlog
440440
displayName: Restore
441441

442442
# We additionally restore during the build because the Microsoft.DotNet.Build.Tasks.Feed package only restores when we pass `-publish`. See https://github.com/dotnet/arcade/blob/37ccfd66358af6a37a0ec385ec31d1d71bdd8723/src/Microsoft.DotNet.Arcade.Sdk/tools/Tools.proj#L61-L66
443443
# Passing `-publish` during the restore step above fails due to no items needing published.
444-
- powershell: eng/build.ps1 -configuration Release -prepareMachine -ci -restore -build -pack -publish -sign -binaryLogName Build.binlog /p:DotnetPublishUsingPipelines=true /p:ContinuousIntegrationBuildCorrectness=true
444+
- powershell: eng/build.ps1 -configuration Release -prepareMachine -ci -restore -build -pack -publish -sign -warnAsError -binaryLogName Build.binlog /p:DotnetPublishUsingPipelines=true /p:ContinuousIntegrationBuildCorrectness=true
445445
displayName: Build
446446

447447
# While this task is not executed in the official build, this serves as a PR check for whether symbol exclusions

0 commit comments

Comments
 (0)