How to Develop a Jenkins Pipeline with a Custom Agent Pod Template from an External Repository

Jenkins pipelines running on Kubernetes offer powerful customization using pod templates. In this post, you’ll learn how to define a custom Kubernetes agent pod in a YAML template located in a different Git repository, and then use that in your Jenkins pipeline. 🧱 Requirements Jenkins with the Kubernetes plugin A Git repo hosting your custom pod template YAML Access to a Kubernetes cluster (like EKS, GKE, or Minikube) Git credentials stored in Jenkins (e.g., via credentialsId) 📁 Repository Structure We assume you have two Git repositories: ...

July 31, 2025 · 2 min · Umberto Domenico Ciccia