When doing reserach on artifactory clean-up based on artifactory gradle plug-in and artifactory builds, I stumbled over this problem (that I think can be seen as a bug) when deleting builds via delete build REST API:
* Okay: when there are two builds that share some artifacts, and the older one is deleted, then seemingly all re-used/re-published identical artifacts are still kept * NOT okay: deleting not the oldest one, but keeping older builds (e.g. because they have been released to the customer) deletes too much: build #1: * artifact +a1+, +b1+ build #2: ... to be deleted, when build #3 is there * artifact +a2+, b1 build #3: * artifact a2, +b3+ *Deleting build #2 (including artifacts) will also delete artifact b1 (not only a2), although it is still needed for the older build #1 (which needs to be kept -- e.g. released to customer), because Artifactory thinks it is not needed anymore for newer builds (build #3)* Can that be solved with the Artifactory build info model? * see https://github.com/JFrogDev/build-info * contains *build retention* with *buildNumbersNotToBeDiscarded*: "buildRetention" : { // Build retention information "deleteBuildArtifacts" : true, // Automatically remove build artifacts stored in Artifactory (true/false) "count" : 100, // The maximum number of builds to store in Artifactory. "minimumBuildDate" : 1407345768020, // Earliest build date to store in Artifactory "buildNumbersNotToBeDiscarded" : [ ] // List of build numbers that should not be removed from Artifactory }, *=> Would it work when adding the build numbers of all old builds to be kept in this "buildNumbersNotToBeDiscarded" (for each new build)? => Or is deletion via REST API's delete build not usable for such a (I would have hoped normal) use case (of keeping released builds)?* -- View this message in context: http://forums.jfrog.org/build-info-s-buildretention-and-buildNumbersNotToBeDiscarded-setting-tp7580287.html Sent from the Artifactory - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
