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.
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
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:
Split the step of
create/validate apiviewin a separate stage could be a potential solution.