What does `podRetention` and `idleMinutes` control?
IntermediateConceptPlugins, JCasC & Jenkins on Kubernetes
Answer
podRetention decides whether pods are deleted after the build: never (default, delete), onFailure (keep failed pods for debugging), or always. idleMinutes keeps a pod alive for reuse by later builds with the same label, trading isolation for speed. In production we delete pods and only enable onFailure temporarily while debugging, because retained pods consume quota.
More on Plugins, JCasC & Jenkins on Kubernetes
How do you manage plugins in a reproducible way?IntermediateWhat does `jenkins-plugin-cli` resolve for you, and what flags matter?IntermediateWhy should you keep the number of plugins low?BeginnerWhat is JCasC and how is it loaded?BeginnerWhat are the top-level root elements in a JCasC file?IntermediateHow do you inject secrets into JCasC without committing them?Advanced