Minor improvement for JENKINS-25819

Allows you to decide if you want, or not, to keep the last builds.

It looks there are too many changes because I needed to re-format the file. Something is wrong with the default format.