Our configurations are multiplying and we are starting to run out of space…
Usual configuration consists of “build stage” and “test stage”.
Build stage is executed on “big” agent and test stage is executed on “small” agent.
It is due to the fact that for build we need computing power and for tests we need time.
So, to make it work we copy build artifacts via workspace copy. Sometimes those artifacts are registered as artifacts, sometimes it’s just copy between agents.
My problem is that some of those artifacts are heavy and are not registered as “artifacts”, so that they can be download after the build finished.
Those artifacts are not removed on workspace cleanup, only after build is “old” enough and is remove completely, this takes a massive amount of space on Continua Server, and as such are not used nor accessible.
Is there a way to only keep registered artifacts and reports on Continua Server ?
Is there a way to delete artifact on Server side after copy to agent ?
You could create a new cleanup rule which cleans up Other Files only and set the Minimum and Maximum Builds to 0. This should cleanup up all files except registered artifacts from the server for all builds when the cleanup rules run (e.g. once a day).
We don’t currently have a means to delete server files, other than with the cleanup up rules. I guess what you would need is a delete/move workspace rule pattern. This is maybe something we can look into implementing.
Another option is the use a << Agent to Server workspace rule at the end of the build to overwrite a server folder with an empty set of files. e.g.
some yes, some no
one report is Bullseye generated coverage which has thousands of small files, I think that would break the “artifacts” tab on the build page