Skip to content

Commit

Permalink
WAIT FOR UPGRADE VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
ebattat committed Sep 30, 2024
1 parent 5fe07ce commit aa606df
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ END
--privileged "${QUAY_BENCHMARK_RUNNER_REPOSITORY}"
"""
// Set the flag to indicate that upgrade steps are completed
currentBuild.description = "UpgradeStageCompleted"
}
}
}
Expand All @@ -172,12 +170,8 @@ END
def WINDOWS_URL = ''
def SCALE = ''
def workload_name = ''
def retryCount = 3 // Number of retries per workload
// while
while (currentBuild.description != "UpgradeStageCompleted") {
for (workload in workloads) {
boolean success = false
for (int i = 0; i < retryCount && !success; i++) {
boolean success = false
try {
// workload full name
workload_name = workload
Expand Down Expand Up @@ -264,14 +258,12 @@ END
} else {
echo "Reached maximum retry attempts for workload ${workload}. Moving to the next workload..."
}
}
}
if (!success) {
echo "Workload ${workload} failed after ${retryCount} retries."
}
// sleep 10 sec between each VMs validation interation
sleep(time: 10, unit: 'SECONDS')
} // while
}
}
}
Expand Down

0 comments on commit aa606df

Please sign in to comment.