My build artifacts disappear within 7 days or less. However the retention plan is not configured to delete anything until the artifact is at least 10 days old, but maybe I'm missing something with how retention plans work.
Some background: I use TFS via Visual Studio Online with a build agent that runs on a local server. I have a build definition in TFS that publishes an artifact to the local server using Artifact Type of "File share". The build definition uses the default retention plan -- keep for 10 days.
The problem: Several times I have published an artifact, then within 1-7 days later the files were gone. Based on the log files in the _diag folder, the agent has an internal job named "Delete Artifacts" that is deleting these artifacts. The last time this happened, the job deleted artifacts created the same day, others from 8 days ago, and others from 16 days ago. (Also worth mentioning: The builds are still listed in the build history under Completed and the artifact is still listed in the build results' Artifacts tab, even though the files were deleted.)
Why is this Delete Artifacts job not honoring the retention policy and deleting artifacts too early? How can I fix this without configuring my builds to be retained indefinitely?