Skip to content

[APIView CI] Allow Build Job Re-run Without Artifact Publish Error When Package Already Exists #14660

@raych1

Description

@raych1

Problem

When a pipeline run fails during API review validation, approvals may be required in API View before proceeding. After receiving approval, users would prefer to re-run only the build job instead of the entire pipeline, saving time by not repeating all test and analysis jobs. However, attempting to re-run the build job results in the following error:

pipeline run

##[error]Artifact packages already exists for build 6049747.

Impact

This prevents efficient recovery from validation failures and forces unnecessary pipeline executions, leading to wasted time and build resources.

Proposed Solution

Introduce a mechanism for the build job to optionally skip the artifact publishing step if the target artifact already exists. This will:

  • Allow users to re-run build jobs after validation steps are approved, without encountering duplicate artifact errors
  • Avoid rerunning unrelated test and analysis jobs
  • Improve pipeline efficiency and resource usage

Split the step of create/validate apiview in a separate stage could be a potential solution.

Metadata

Metadata

Labels

APIViewIssues related to APIView core functionality or UIEngSysThis issue is impacting the engineering system.

Type

No type

Projects

Status

🚀 Ready to Work

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions