Draft
Allow ReleaseConfigs artifact publish to continue on job rerun#17461
Conversation
Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Publish ReleaseConfigs Artifact step failure on rerun
Allow ReleaseConfigs artifact publish to continue on job rerun
Aug 31, 2026
akoeplinger
reviewed
Sep 4, 2026
| # Pipeline artifacts are immutable, so a job rerun fails with | ||
| # "Artifact ReleaseConfigs already exists for build ...". The artifact was already | ||
| # published by the previous attempt, so let the rerun continue. | ||
| continueOnError: true |
Member
There was a problem hiding this comment.
I think we'll hit the same issue for "Publish Merged Manifest" above.
I wonder if we could skip those tasks by checking whether eq(variables['System.JobAttempt'], 1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Azure DevOps pipeline artifacts are immutable, so rerunning a
publish-build-assetsjob fails withArtifact ReleaseConfigs already exists for build ...— the artifact was published by the first attempt.Changes
eng/common/core-templates/job/publish-build-assets.yml:Publish ReleaseConfigs Artifact— passcontinueOnError: truethrough theargsobject. A rerun proceeds past the already-exists error, while still publishing normally if the first attempt failed before this step.Create ReleaseConfigs Artifact— first line now usesSet-Contentinstead ofAdd-Content, soReleaseConfigs.txtis recreated rather than appended when a retry lands on a reused workspace. Three-line format unchanged.displayName: Publish ReleaseConfigs Artifact targetPath: '$(Build.StagingDirectory)/ReleaseConfigs' artifactName: ReleaseConfigs + continueOnError: true retryCountOnTaskFailure: 10 # for any files being lockedNotes
ReleaseConfigs(no$(System.JobAttempt)suffix) — downstream jobs download that stable name.publish-pipeline-artifacts.ymltemplates are untouched. Both the standard and 1ES implementations already forwardcontinueOnError, so no changes were needed there.To double check: