Update apps/demo-nginx/Jenkinsfile
This commit is contained in:
7
apps/demo-nginx/Jenkinsfile
vendored
7
apps/demo-nginx/Jenkinsfile
vendored
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user