@@ -191,6 +191,23 @@ jobs:
191
191
continueOnError : true
192
192
condition : always()
193
193
194
+ - ${{ each artifact in parameters.artifacts }} :
195
+ - task : PublishBuildArtifacts@1
196
+ displayName : Upload artifacts from ${{ artifact.path }}
197
+ condition : and(or(succeeded(), eq('${{ artifact.publishOnError }}', 'true')), or(eq(variables['system.pullrequest.isfork'], false), eq('${{ artifact.includeForks }}', 'true')))
198
+ continueOnError : true
199
+ inputs :
200
+ ${{ if eq(parameters.buildDirectory, '') }} :
201
+ pathtoPublish : ${{ artifact.path }}
202
+ ${{ if ne(parameters.buildDirectory, '') }} :
203
+ pathtoPublish : ${{ parameters.buildDirectory }}\${{ artifact.path }}
204
+ ${{ if eq(artifact.name, '') }} :
205
+ artifactName : artifacts-$(AgentOsName)-$(BuildConfiguration)
206
+ ${{ if ne(artifact.name, '') }} :
207
+ artifactName : ${{ artifact.name }}
208
+ artifactType : Container
209
+ parallel : true
210
+
194
211
- task : PublishTestResults@2
195
212
displayName : Publish test results
196
213
condition : always()
@@ -218,22 +235,6 @@ jobs:
218
235
testResultsFiles : ' **/TEST-com.microsoft.signalr*.xml'
219
236
buildConfiguration : $(BuildConfiguration)
220
237
buildPlatform : $(AgentOsName)
221
- - ${{ each artifact in parameters.artifacts }} :
222
- - task : PublishBuildArtifacts@1
223
- displayName : Upload artifacts from ${{ artifact.path }}
224
- condition : and(or(succeeded(), eq('${{ artifact.publishOnError }}', 'true')), or(eq(variables['system.pullrequest.isfork'], false), eq('${{ artifact.includeForks }}', 'true')))
225
- continueOnError : true
226
- inputs :
227
- ${{ if eq(parameters.buildDirectory, '') }} :
228
- pathtoPublish : ${{ artifact.path }}
229
- ${{ if ne(parameters.buildDirectory, '') }} :
230
- pathtoPublish : ${{ parameters.buildDirectory }}\${{ artifact.path }}
231
- ${{ if eq(artifact.name, '') }} :
232
- artifactName : artifacts-$(AgentOsName)-$(BuildConfiguration)
233
- ${{ if ne(artifact.name, '') }} :
234
- artifactName : ${{ artifact.name }}
235
- artifactType : Container
236
- parallel : true
237
238
238
239
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), eq(parameters.agentOs, 'Windows')) }} :
239
240
- task : MicroBuildCleanup@1
0 commit comments