Build history is needed for 2 years for compliance, but the controller disk is filling. What do you do?
IntermediateScenarioOperations: scale, HA, upgrades & performance
Answer
Situation read → Compliance retention conflicts with controller performance.
What I'd do →
- Keep only recent builds in Jenkins (e.g. 30 days).
- Export build metadata and logs to long-term storage before deletion: a
post { always { } }step that uploads the log and a JSON summary to S3 with object lock, or a log shipping plugin. - Store release artifacts in the repository manager with retention policies.
- Document the evidence trail (commit, build URL, artifact digest, approver).
Why → Jenkins is not an archive; compliance data belongs in immutable storage.
Interview tip → Mention object lock (WORM) for audit evidence.
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?IntermediateA plugin update caused the controller to fail on startup in production. Recover.IntermediateYour controller serves 2,000 developers and 4,000 jobs. When do you split, and how?Advanced