7575 - ${{ if eq(parameters.enableRichCodeNavigation, 'true') }} :
7676 - name : EnableRichCodeNavigation
7777 value : ' true'
78+ # Retry signature validation up to three times, waiting 2 seconds between attempts.
79+ # See https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu3028#retry-untrusted-root-failures
80+ - name : NUGET_EXPERIMENTAL_CHAIN_BUILD_RETRY_POLICY
81+ value : 3,2000
7882 - ${{ each variable in parameters.variables }} :
7983 # handle name-value variable syntax
8084 # example:
8387 - ${{ if ne(variable.name, '') }} :
8488 - name : ${{ variable.name }}
8589 value : ${{ variable.value }}
86-
90+
8791 # handle variable groups
8892 - ${{ if ne(variable.group, '') }} :
8993 - group : ${{ variable.group }}
@@ -169,7 +173,7 @@ jobs:
169173 - ${{ if eq(parameters.enableMicrobuild, 'true') }} :
170174 - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
171175 - task : MicroBuildCleanup@1
172- displayName : Execute Microbuild cleanup tasks
176+ displayName : Execute Microbuild cleanup tasks
173177 condition : and(always(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
174178 continueOnError : ${{ parameters.continueOnError }}
175179 env :
@@ -219,7 +223,7 @@ jobs:
219223 displayName : Publish XUnit Test Results
220224 inputs :
221225 testResultsFormat : ' xUnit'
222- testResultsFiles : ' *.xml'
226+ testResultsFiles : ' *.xml'
223227 searchFolder : ' $(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
224228 testRunTitle : ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-xunit
225229 mergeTestResults : ${{ parameters.mergeTestResults }}
@@ -230,7 +234,7 @@ jobs:
230234 displayName : Publish TRX Test Results
231235 inputs :
232236 testResultsFormat : ' VSTest'
233- testResultsFiles : ' *.trx'
237+ testResultsFiles : ' *.trx'
234238 searchFolder : ' $(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
235239 testRunTitle : ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-trx
236240 mergeTestResults : ${{ parameters.mergeTestResults }}
0 commit comments