Or more efficient:
job.builds.findAll{it != currentBuild && it.isKeepLog(){
manager.setBuildNumber(it.number)
manager.removeBadge(0)
manager.addWarningBadge('unkept')
manager.build.keepLog(false)
}
Am Donnerstag, 5. November 2015 17:49:08 UTC+1 schrieb Sean Jones:
>
> I have a large matrix configuration. Each configuration is storing ~5GB of
> data and I only need to keep a few builds at any one time, so I have
> enabled log rotator to keep 5 builds.
>
> I can't seem to find a setting or option to completely disable the 'Keep
> this build forever'. This is quickly filling up the Jenkins job store. Is
> there an option to disable this or am I doomed to delete artefacts manually?
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/02886a89-92a2-4b0d-a81b-e1cf5f6e4299%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.