I have a Jenkins script with daysToKeepStr param .
options { buildDiscarder( logRotator(
numToKeepStr:'5',
daysToKeepStr: '7',
) )
daysToKeepStr: discard the builds after 7 days .
But I see in jenkins for every branch one build is still remaining after 7 days . Having 100+ branches consuming lot of storage due to the build being not discarded.
Can someone suggest How to discard all the builds after specific no of days