[FIXED JENKINS-22135] Optionally store successful builds in the statistics as well