From 2e360641e3964bda8e648b7b516d2a19e195159c Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 8 Jan 2026 09:47:56 +0000 Subject: [PATCH] Update apps/demo-nginx/Jenkinsfile --- apps/demo-nginx/Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/demo-nginx/Jenkinsfile b/apps/demo-nginx/Jenkinsfile index 18d1f07..b4ad2aa 100644 --- a/apps/demo-nginx/Jenkinsfile +++ b/apps/demo-nginx/Jenkinsfile @@ -470,10 +470,12 @@ EOF fi echo " ✅ All pods ready" + # 2. Verify pod images (source of truth) echo "" echo "2. Checking running pod images..." - POD_IMAGES=$(kubectl get pods -n ${NAMESPACE} -l app=${APP_NAME} \ + + POD_IMAGES=$(kubectl get pods -n "${NAMESPACE}" -l app="${APP_NAME}" \ -o jsonpath='{.items[*].spec.containers[0].image}') echo " Pod images: ${POD_IMAGES}" @@ -486,8 +488,7 @@ EOF echo " ✅ All pods are running expected image" - echo " ✅ Deployment spec correct" - + # 3. CRITICAL: Verify actual running pod images echo "" echo "3. Checking actual running pod images..."