Excellent. I'd forgotten about the (groovy) console. Thanks!

On Mon, Sep 17, 2012 at 10:12 AM, <chris_willia...@dell.com> wrote:

> FYI, ****
>
> You can also force log rotation (i.e. old build purging) to occur for all
> jobs by running this in the script console:****
>
> ** **
>
> jenkins.model.Jenkins.instance.items.each { it.logRotate() }****
>
> ** **
>
> ** **
>
> *-Chris*
>
> * *
>
> ** **
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Scott Evans
> *Sent:* Thursday, September 13, 2012 4:34 PM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Will reducing the Max # of builds to keep automatically
> delete old builds?****
>
> ** **
>
> Ed,
>
> Based on my experience, it will purge old builds (by date or quantity)
> only when a new build of that type completes.  In your case, once you run
> one, it'll should automatically delete the 91 "extra" builds which are no
> longer within the retention policies for that build type.  Note that it
> will keep the last successful build, no matter how many failures you have,
> so it should always keep the most recent successful build, no matter how
> old.
>
> Note that this might not occur properly with multiconfiguration builds, as
> I've seen them not clean up properly, but don't know if that's fixed
> recently or not.
>
> Scott****
>
> On Thu, Sep 13, 2012 at 4:03 PM, Ed Young <e...@summitbid.com> wrote:****
>
> I need to clear out some drive space on our build machine by deleting
> old builds, but manually selecting each one and deleting it is too
> painful.
>
> If I change Max # of builds to keep from 100 to 10, will Jenkins
> automatically delete the 90 that I no longer want, or do I need to
> delete them by hand?****
>
> ** **
>



-- 
- Ed

Reply via email to