Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
BuildMaster Artifact Retention Question
-
If an artifact retention policy is set to keep only only the last 500MB of artifacts, does this mean that across all releases, only 500MB of artifacts will be kept?
Or does it mean 500MB per release? If the latter, would there be any way to set it up to apply per release?
Thank you,
Ali
-
Hi Ali,
By default, an artifact retention policy operates on artifacts alone and does not consider builds/releases/etc.
There is no current way to say "500MB of artifacts per release", however, you can combine 2 retention policies that should be close to what you want:
- Build retention policy:
- Only purge builds in deployed releases
- Only purge rejected builds
- Keep last (whatever you want)
- Artifact retention policy:
- Only purge artifacts in deployed releases
- Only purge artifacts in rejected builds
- Purge orphaned artifacts
The key is "purge orphaned artifacts" which will only delete artifacts after its corresponding build is deleted. This allows you to provide the necessary granularity on the builds themselves, and let the artifact policy come in after and clean up the artifacts that no longer have an existing build. This can be extended to releases in a way, since any releases that get deleted will also have all their builds deleted.
Hope this helps,
-John
- Build retention policy: