This setting controls how slave pods are retained after the Jenkins build completes. The following retention policies are provided:

  1. Never - always delete the slave pod.
  2. On Failure - keep the slave pod if it fails during the build.
  3. 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.