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