You inherit a controller with 230 plugins, half unused, on a version two LTS lines behind. Plan the cleanup and upgrade.
AdvancedScenarioPlatform: plugins, JCasC & Kubernetes agents
Answer
Situation read → Large surface, upgrade risk compounds with plugin count.
What I'd do →
- Export the plugin list and current config (
/configuration-as-code/viewExport), back upJENKINS_HOME. - Find usage with the Plugin Usage plugin and by grepping
jobs/*/config.xmland Jenkinsfiles for steps; mark unused plugins (dependencies of used ones stay). - Clone production to staging, remove unused plugins there, check for "old data" and broken jobs.
- Build an image with the target LTS and
jenkins-plugin-cli --jenkins-version <target> --available-updates. - Upgrade staging, run smoke pipelines, then production with quiet-down and a rollback image.
- Move everything into
plugins.txtand JCasC so this never accumulates again.
Why → Removing plugins before upgrading reduces conflicts and testing scope.
Interview tip → Mention the Java 17 requirement as a classic upgrade blocker.
More on Platform: plugins, JCasC & Kubernetes agents
An admin changes a cloud setting in the UI, and it reverts after the next controller restart. Developers are confused. What is your policy?BeginnerYou must stand up a new Jenkins controller for a team in under an hour, identical to the existing ones. How?IntermediateBuilds wait 2–3 minutes before starting because new agent pods are slow to schedule. How do you speed up agent startup?AdvancedDevelopers need Docker image builds in Kubernetes agents, but the cluster runs containerd and security forbids privileged pods. What do you choose?AdvancedThe controller needs to provision agents in three Kubernetes clusters in different regions. How do you configure it?AdvancedYou want to roll out a new version of the `jnlp` inbound-agent image to all pod templates. How?Beginner