I don't think there's something per branch, but you probably want to either search JIRA and/or file a new feature request about it.
You shouldn't need a special plugin, this is a standard feature. Here's the way to do it with Declarative Pipeline: pipeline { options { buildDiscarder(logRotator(numToKeepStr: '20')) } ... } Or with scripted Pipeline: https://github.com/jenkinsci/jenkins/blob/master/Jenkinsfile#L17-L19 HTH 2017-02-28 20:24 GMT+01:00 Mark Stosberg <m...@rideamigos.com>: > For cleaning up old builds, the "Discard Old Builds" plugin is recommended: > > https://wiki.jenkins-ci.org/display/JENKINS/Discard+Old+Build+plugin > > However, the instructions for reference a "post build" step which doesn't > exist in the Configure interface for Multibranch Pipeline projects. > > What's the recommended way to clean-up builds from multi-branch pipeline > projects? Ideally I'd like different pruning policies for different > branches. > > Thanks, > > Mark > > -- > 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. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jenkinsci-users/1d9e0343-bbce-474f-a4fe-7623a4f39aaf%40googlegroups. > com > <https://groups.google.com/d/msgid/jenkinsci-users/1d9e0343-bbce-474f-a4fe-7623a4f39aaf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6mM4%2B_hVif-X5ED6WA8G7TdmLfpU4h3kH0ff77zQoFJA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.