Cleanup issue

Hi,

I have a bit of a problem with build cleanup. One of my builds produces a huge (~1 Gb) artifact, and I set up the cleanup policy so that all history of that build is deleted for builds that are older than 2 last builds. However, it does not work - can this happen because of softer global cleanup settings?

5 comments

BTW, is it safe to manually delete artifacts? I have found a secret place where build server keeps them, so... :)

0

Yes it is safe to delete artifacts right from the disk. As for not working clean-up, please make sure no other builds depend on this build by artifacts or downloaded this build artifacts. If this is the case then cleanup won't remove build until dependent builds are removed.

--
Pavel Sher

0

Yes, naturally there are other builds that depend on artifacts - after all, it is all the point about them.
Could you please tell what are the exact conditions for cleanup in that case? If all the depending builds use artifacts only from the last successful build, is it still the obstacle for earlier build's artifacts to be cleaned up?

0

When build downloads artifact server remembers which build downloaded it and till this build is cleaned the build from which artifact was downloaded won't be cleaned. Also build won't be cleaned if there is straight dependency on it by build number. In the latest EAP we started to mark builds that cannot be cleaned because of dependencies with special icon in the builds history. We are still looking for a better solution to this problem though.

--
Pavel Sher

0

Please sign in to leave a comment.