What is the impact of `buildDiscarder` on disk and performance?
BeginnerConceptBackups, HA, upgrades & performance
Answer
Each retained build keeps a directory with its log, metadata, test results and artifacts. Jobs with 10,000 builds take longer to load and fill the disk. buildDiscarder(logRotator(numToKeepStr: '30', daysToKeepStr: '30', artifactNumToKeepStr: '5')) keeps history manageable. Set a global default with the Discard Old Build plugin or enforce it in your shared library's pipeline template.
More on Backups, HA, upgrades & performance
What do you back up in Jenkins and what do you exclude?IntermediateHow do you back up Jenkins running on Kubernetes?IntermediateDoes Jenkins support active-active high availability?AdvancedHow do you plan a Jenkins LTS upgrade?IntermediateWhat does "Manage Old Data" mean after an upgrade?BeginnerHow do you size and tune the controller JVM?Advanced