Update apps/demo-nginx/Jenkinsfile

This commit is contained in:
2026-01-08 09:47:56 +00:00
parent 01ba80abfb
commit 2e360641e3

View File

@@ -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,7 +488,6 @@ EOF
echo " ✅ All pods are running expected image"
echo " ✅ Deployment spec correct"
# 3. CRITICAL: Verify actual running pod images
echo ""