Done - please re-check. Jan
> -----Ursprüngliche Nachricht----- > Von: Niklas Gustavsson [mailto:[email protected]] > Gesendet: Samstag, 14. August 2010 12:29 > An: [email protected] > Betreff: Re: Script for enforcing discarding of old builds > > On Sat, Aug 14, 2010 at 11:31 AM, Jan Matèrne <[email protected]> > wrote: > > I committed a script to > committers/tools/hudson/SetDiscardOldBuilds.groovy > > Please have a look before running it ;-) > > Thanks! We also need to take getDaysToKeep() into consideration. > Something like: > > * If a build has days to keep set, enforce that the value is not > larger than a maximum that we allow > * If a build has num to keep set, enforce that the value is not larger > than a maximum that we allow > * Else, if no value is set for either, set the maximum num to keep > > I'll see if I can modify the script to do this, or if you get there > before me :-) > > /niklas
