A storage outage corrupted some `build.xml` files and jobs show errors on load. What do you do?
AdvancedScenarioOperations: scale, HA, upgrades & performance
Answer
Situation read → Partial data corruption.
What I'd do →
- Check logs for
Failed to loadwith paths; Jenkins lists unreadable data under Manage Old Data. - For corrupted build directories, move them out of
jobs/*/builds/(or restore from backup) and reload configuration from disk. - If
config.xmlfiles are corrupted, restore from backup or regenerate jobs via Job DSL. - Verify storage health and move
JENKINS_HOMEto reliable block storage.
Why → Corrupted build records can be dropped; configs come back from code.
Interview tip → Mention "Reload Configuration from Disk" and its effect.
More on Operations: scale, HA, upgrades & performance
Jenkins is a single VM with local disk and no backups. The business wants an RTO of 1 hour. Design recovery.AdvancedQueue length spikes to 80 every morning at 9:30 and builds wait 15 minutes. How do you analyse and fix?IntermediateThe controller has 12 GB heap and still does full GCs every few minutes. What do you investigate?AdvancedYou need to upgrade from Jenkins 2.426 LTS (Java 11) to the current LTS. What is your sequence?IntermediateBuild history is needed for 2 years for compliance, but the controller disk is filling. What do you do?IntermediateA plugin update caused the controller to fail on startup in production. Recover.Intermediate