This setting controls how slave pods are retained after the Jenkins build completes for this pod template. Values other than "default" will override the plugin's Pod Retention setting. The following retention policies are supported:

  1. default - use the Pod Retention setting for the plugin.
  2. Never - always delete the slave pod.
  3. On Failure - keep the slave pod if it fails during the build.
  4. Always - always keep the slave pod.

Note: Kubernetes administrators are responsible for managing any kept slave pod. These will not be deleted by the Jenkins Kubernetes plugin.