Skip to content

Commit 944678f

Browse files
authored
Make official & Private builds retryable (#6571) (#6585)
1 parent 2f80b15 commit 944678f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

eng/pipelines/templates/pipeline.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ stages:
185185

186186
- output: pipelineArtifact
187187
displayName: 'Publish localizationArtifacts artifact'
188-
condition: "or(eq(variables['OverridePublishLocalizationArtifact'], 'true'), and(succeededOrFailed(), eq(variables['IsOfficialBuild'], 'true')))"
188+
condition: "or(eq(variables['OverridePublishLocalizationArtifact'], 'true'), and(succeeded(), eq(variables['IsOfficialBuild'], 'true')))"
189189
targetPath: "$(Build.Repository.LocalPath)\\artifacts\\localizationArtifacts\\"
190190
artifactName: "localizationArtifacts"
191191
sbomBuildDropPath: $(Build.SourcesDirectory)/artifacts
@@ -331,7 +331,7 @@ stages:
331331
displayName: 'Upload source-build log'
332332
condition: "or(failed(), eq(variables['System.debug'], 'true'))"
333333
targetPath: "artifacts/sb/log/source-build.binlog"
334-
artifactName: "Source-build log"
334+
artifactName: "Source-build log - Attempt $(System.JobAttempt)"
335335
sbomEnabled: false
336336
steps:
337337
- template: /eng/pipelines/templates/Source_Build.yml@self
@@ -363,7 +363,7 @@ stages:
363363
displayName: 'Publish Test Freeze Dump'
364364
condition: "or(failed(), canceled())"
365365
targetPath: "$(Build.Repository.LocalPath)/build/TestResults"
366-
artifactName: "$(Agent.JobName)"
366+
artifactName: "$(Agent.JobName) - Attempt $(System.JobAttempt)"
367367
sbomEnabled: false
368368

369369
- output: pipelineArtifact
@@ -403,7 +403,7 @@ stages:
403403
displayName: 'Publish Test Freeze Dump'
404404
condition: "or(failed(), canceled())"
405405
targetPath: "$(Build.Repository.LocalPath)/build/TestResults"
406-
artifactName: "$(Agent.JobName)"
406+
artifactName: "$(Agent.JobName) - Attempt $(System.JobAttempt)"
407407
sbomEnabled: false
408408

409409
- output: pipelineArtifact
@@ -442,7 +442,7 @@ stages:
442442
displayName: 'Publish Test Freeze Dump'
443443
condition: "or(failed(), canceled())"
444444
targetPath: "$(Build.Repository.LocalPath)/build/TestResults"
445-
artifactName: "$(Agent.JobName)"
445+
artifactName: "$(Agent.JobName) - Attempt $(System.JobAttempt)"
446446
sbomEnabled: false
447447

448448
- output: pipelineArtifact
@@ -471,7 +471,7 @@ stages:
471471
displayName: 'Publish Test Freeze Dump'
472472
condition: "or(failed(), canceled())"
473473
targetPath: "$(Build.Repository.LocalPath)/build/TestResults"
474-
artifactName: "$(Agent.JobName)"
474+
artifactName: "$(Agent.JobName) - Attempt $(System.JobAttempt)"
475475
sbomEnabled: false
476476

477477
- output: pipelineArtifact
@@ -508,7 +508,7 @@ stages:
508508
displayName: 'Publish Test Freeze Dump'
509509
condition: "or(failed(), canceled())"
510510
targetPath: "$(Build.Repository.LocalPath)/build/TestResults"
511-
artifactName: "$(Agent.JobName)"
511+
artifactName: "$(Agent.JobName) - Attempt $(System.JobAttempt)"
512512
sbomEnabled: false
513513

514514
- output: pipelineArtifact

0 commit comments

Comments
 (0)