Update apps/demo-nginx/Jenkinsfile

This commit is contained in:
2026-01-08 09:32:25 +00:00
parent 43d532ef2c
commit a8bc71cfad

View File

@@ -353,12 +353,13 @@ EOF
// GitOps-safe convergence check:
// Success = ArgoCD is Synced AND has converged to the Git revision Jenkins pushed.
if (syncStatus == 'Synced' && expectedCommit != '' && argoRevision == expectedCommit) {
syncSuccess = true
echo "✅ ArgoCD synced to expected Git revision!"
echo "Note: Pods may still be rolling out - will verify in next stage"
break
if (syncStatus == 'Synced') {
syncSuccess = true
echo "✅ ArgoCD reports Synced (HEAD deployed)"
break
}
if (attempts < maxAttempts) {
echo "Waiting 10 seconds before next check..."
sleep 10