Skip to content

Commit 254eea0

Browse files
authored
Add attempt number to failed builds (dotnet#28280)
1 parent c8d03fe commit 254eea0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

eng/pipelines/common/device-tests-steps.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,13 @@ steps:
162162
# Publish the artifacts directory if this is a build-only job
163163
- ${{ if eq(parameters.buildType, 'buildOnly') }}:
164164
- publish: ${{ parameters.checkoutDirectory }}/artifacts/bin
165-
displayName: Publish Artifacts Directory
166-
condition: always()
165+
displayName: Publish Succeeded Artifacts Directory
166+
condition: succeeded()
167167
artifact: ${{ parameters.appArtifactName }}
168+
- publish: ${{ parameters.checkoutDirectory }}/artifacts/bin
169+
displayName: Publish Failed Artifacts Directory
170+
condition: not(succeeded())
171+
artifact: ${{ parameters.appArtifactName }}_failed_$(System.JobAttempt)
168172

169173
# Publish the test results
170174
- ${{ if ne(parameters.buildType, 'buildOnly') }}:

0 commit comments

Comments
 (0)