Default implementation of BuildDiscarder.
For historical reason, this is called LogRotator, but it does not rotate logs :-)
Since 1.350 it has also the option to keep the build, but delete its recorded artifacts.