You can use the groovy postbuild plugin for un-keeping:
for(i=1; i<currentBuildNumber; i++) {
if(manager.setBuildNumber(i)) {
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/ef5f8494-46ed-4716-9b91-9337025c0d34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.