Skip to content

Commit 5d8ce9b

Browse files
authored
[ci] Use dynamic names for log artifacts (#26)
Updates log artifact names to include the job attempt number. This should avoid job re-run failures that occur when attempting to upload a log artifact that already exists.
1 parent 758d2e7 commit 5d8ce9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-tools/automation/azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ extends:
9696
- output: pipelineArtifact
9797
displayName: Upload logs
9898
condition: always()
99-
artifactName: build-logs-linux
99+
artifactName: build-logs-linux-$(System.JobAttempt)
100100
targetPath: $(Build.StagingDirectory)
101101
sbomEnabled: false
102102
- output: pipelineArtifact
@@ -153,7 +153,7 @@ extends:
153153
- output: pipelineArtifact
154154
displayName: Upload logs
155155
condition: always()
156-
artifactName: build-logs-macos
156+
artifactName: build-logs-macos-$(System.JobAttempt)
157157
targetPath: $(Build.StagingDirectory)
158158
sbomEnabled: false
159159
- output: pipelineArtifact

0 commit comments

Comments
 (0)