Add handling of resultCodes for disk i/o utilization check
- Also fix order of checking resultCodes
- Partial cherry-pick of 0f3b85dfd2220042a961651707f97eb2d6932d3f
Related: PROD-28135
Change-Id: I51f875f315a60b59d844c754549cee743d86305e
diff --git a/galera-cluster-verify-restore.groovy b/galera-cluster-verify-restore.groovy
index d75e3ea..ecbafc5 100644
--- a/galera-cluster-verify-restore.groovy
+++ b/galera-cluster-verify-restore.groovy
@@ -48,8 +48,14 @@
}
}
if (resultCode == 131) {
- common.errorMsg("Time desynced - Click proceed when the issue is fixed or abort.")
+ common.errorMsg("Time desynced - Please fix this issue and rerun the pipeline.")
currentBuild.result = "FAILURE"
+ return
+ }
+ if (resultCode == 140 || resultCode == 141) {
+ common.errorMsg("Disk utilization check failed - Please fix this issue and rerun the pipeline.")
+ currentBuild.result = "FAILURE"
+ return
}
if (resultCode == 1) {
if(askConfirmation){