Yeah. Forcing logRotate will do that for you.

I use this script with try/catch, because sometimes I got some IOExceptions
on run without it, and the script scops:

Jenkins.instance.items.each {
  try {
    println(it.name);
    it.logRotate();
  } catch(Exception e) {
    println(e);
  }
}




"Reload configuration from disk" on a running instance deletes old builds
as well.


Regards,
Bruno Candido Volpato da Cunha

On Sun, Feb 3, 2013 at 9:13 PM, Sami Tikka <sjti...@gmail.com> wrote:

> Jenkins only deletes builds when it runs the job. If you need the disk
> space vacated immediately, you can script it like described here:
>
>
> http://jenkins.361315.n4.nabble.com/Is-there-a-way-to-make-quot-discard-old-builds-quot-happen-right-now-td3879634.html
>
> -- Sami
>
> Chris Withers <ch...@simplistix.co.uk> kirjoitti 20.1.2013 kello 0.43:
>
> > Hi All,
> >
> > I'd like to delete this build:
> >
> > http://jenkins.simplistix.co.uk/job/testfixtures-tox/83/
> >
> > ...however clicking the "don't keep this build forever" button does
> nothing.
> >
> > What am I doing wrong?
> >
> > Chris
> >
> > --
> > Simplistix - Content Management, Batch Processing & Python Consulting
> >           - http://www.simplistix.co.uk
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to