From 2cd9ad3c621ea3773b1fc816b772b0733f242716 Mon Sep 17 00:00:00 2001 From: areeqakbr Date: Tue, 25 Feb 2025 16:54:35 +0700 Subject: [PATCH] adding debug pipeliners --- Jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 6af369c..e510d8d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,6 +81,21 @@ spec: } } + stage('Debug Kubernetes') { + steps { + container('kubectl') { + withKubeConfig([credentialsId: "${KUBE_CONFIG_ID}"]) { + sh ''' + kubectl cluster-info + kubectl get nodes + kubectl get pods --all-namespaces + ''' + } + } + } + } + + stage('Deploy to Kubernetes') { steps { container('kubectl') { // ✅ Ensures `kubectl` runs in the correct container