This should describe the behaviour when publishing to an existing artifact.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
I want to know if I can publish files to the same artifact from different jobs?
@ScottLangham Any updates on your question? please let me know. thank you.
I found through experimentation that it doesn't work.
Confirming @ScottLangham's experimentation, this is the error I get today (and the PublishPipeLineArtifact task fails):
No LastRequestResponse on exception ArtifactExistsException: Artifact packageNamesJsonFile already exists for build 151265.
...[error]Artifact packageNamesJsonFile already exists for build 151265.
One job creates and updates one property in a JSON file, which it then uploads.
A subsequent job downloads the artifact and updates another property in the file.
Another subsequent job needs the file with both properties filled out; I was attempting to simply have the one artifact instead of having to upload another artifact (basically, a copy of the first artifact).
😕
This issue hasn't been updated in more than 180 days, so we've closed it. If you feel the issue is still relevant and needs fixed, please reopen it and we'll take another look. We appreciate your feedback and apologize for any inconvenience.
Most helpful comment
I want to know if I can publish files to the same artifact from different jobs?