Martin d'Anjou What do you mean by retain last N builds. Does it mean getting last N builds which were discarded or something else.
Or you want that both age and number of builds both factor plays a role in discarding build and no overwritten happens.(Similar to my GSoC Proposal)
Can you please clarify?