Pod retention of the failed job

Problem to solve

when troubleshooting we need the pod to be available even after the job is completed to go to shell and check the files

I tried to retain pods using policy like “cleanup_resources_timeout” but due gitlab default policy, pods are cleaned up after job is complete.

My main goal is to make the pods available for the job which is failed for troubleshooting purposes.

Versions

  • [*] Self-managed
  • GitLab.com SaaS
  • Dedicated
  • Self-hosted Runners