diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5a751ef9288..5adf03fc6e4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -123,6 +123,8 @@ stages: - checkout: self clean: true steps: + - script: eng\common\sdk-task.ps1 -task PublishToSymbolServers /p:DryRun="true" -restore + displayName: sdk-task verification - powershell: eng\common\build.ps1 -configuration $(_BuildConfig) -prepareMachine diff --git a/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/PublishToSymbolServers.proj b/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/PublishToSymbolServers.proj index 903d1b0e41b..3ea9d0e613a 100644 --- a/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/PublishToSymbolServers.proj +++ b/src/Microsoft.DotNet.Arcade.Sdk/tools/SdkTasks/PublishToSymbolServers.proj @@ -12,6 +12,7 @@ - DotNetSymbolServerTokenMsdl : PAT to access MSDL. - DotNetSymbolServerTokenSymWeb : PAT to access SymWeb. - DotNetSymbolExpirationInDays : Expiration days for published packages. Default is 3650. + - DryRun : Switch parameter to handle dry run. Default is false. - SymbolPublishingExclusionsFile : Path to file containing exclusion list to be used by Symbol Uploader. - PublishSpecialClrFiles : If true, publish the DAC, DBI and SOS using the coreclr index. If false, don't do any special indexing. --> @@ -39,6 +40,7 @@ 3650 + false true true true @@ -96,7 +98,7 @@ SymbolServerPath="%(SymbolServerTargets.Identity)" ExpirationInDays="$(DotNetSymbolExpirationInDays)" VerboseLogging="true" - DryRun="false" + DryRun="$(DryRun)" ConvertPortablePdbsToWindowsPdbs="false" PdbConversionTreatAsWarning="" PublishSpecialClrFiles="$(PublishSpecialClrFiles)"