Optionally add this item to properties array:
buildDiscarder(logRotator(artifactNumToKeepStr: '10'))
to enable storing large build artifacts just for a few recent builds, while storing logs longer.
CAVEAT: The original idea is to store tarballs, packages, etc. - but cleanup would likely hit also the config/build/check log files...