75
75
- ${{ if eq(parameters.enableRichCodeNavigation, 'true') }} :
76
76
- name : EnableRichCodeNavigation
77
77
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
78
82
- ${{ each variable in parameters.variables }} :
79
83
# handle name-value variable syntax
80
84
# example:
83
87
- ${{ if ne(variable.name, '') }} :
84
88
- name : ${{ variable.name }}
85
89
value : ${{ variable.value }}
86
-
90
+
87
91
# handle variable groups
88
92
- ${{ if ne(variable.group, '') }} :
89
93
- group : ${{ variable.group }}
@@ -169,7 +173,7 @@ jobs:
169
173
- ${{ if eq(parameters.enableMicrobuild, 'true') }} :
170
174
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
171
175
- task : MicroBuildCleanup@1
172
- displayName : Execute Microbuild cleanup tasks
176
+ displayName : Execute Microbuild cleanup tasks
173
177
condition : and(always(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
174
178
continueOnError : ${{ parameters.continueOnError }}
175
179
env :
@@ -219,7 +223,7 @@ jobs:
219
223
displayName : Publish XUnit Test Results
220
224
inputs :
221
225
testResultsFormat : ' xUnit'
222
- testResultsFiles : ' *.xml'
226
+ testResultsFiles : ' *.xml'
223
227
searchFolder : ' $(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
224
228
testRunTitle : ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-xunit
225
229
mergeTestResults : ${{ parameters.mergeTestResults }}
@@ -230,7 +234,7 @@ jobs:
230
234
displayName : Publish TRX Test Results
231
235
inputs :
232
236
testResultsFormat : ' VSTest'
233
- testResultsFiles : ' *.trx'
237
+ testResultsFiles : ' *.trx'
234
238
searchFolder : ' $(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
235
239
testRunTitle : ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-trx
236
240
mergeTestResults : ${{ parameters.mergeTestResults }}
0 commit comments