Skip to content

[Main] Publish Artifacts step failed after rerun #4829

@Winniexu01

Description

@Winniexu01

Related to #4537 and dotnet/sdk@e5a8c45, it seems that @ViktorHofer added the condition succeededOrFailed() to the publish artifacts step and it does not support overwriting artifacts.

Failing build (internal Microsoft link):

##[error]Artifact CentOSStream9_Mono_Offline_CurrentSourceBuiltSdk_x64_Artifacts already exists for build 2620900.

Does below solution make sense to you @MichaelSimons @ellahathaway @ViktorHofer ?

  • Add another Publish Artifacts step that only publish on success, and modify the current Publish Artifacts step to include $(System.JobAttempt) that only publish on fail. This will not affect the other pipelines download these artifacts.

Metadata

Metadata

Assignees

Labels

area-buildImprovements in source-build's own build processops-monitorIssues created/handled by the source build monitor role

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions