Fix env variable verification in galera restore pipe
Related: PROD-24216 (PROD:24216)
Change-Id: Ib117375a15dd74c1b72689f955b58423b1437e1f
diff --git a/galera-cluster-verify-restore.groovy b/galera-cluster-verify-restore.groovy
index e1e8cfb..a5d4483 100644
--- a/galera-cluster-verify-restore.groovy
+++ b/galera-cluster-verify-restore.groovy
@@ -19,7 +19,7 @@
askConfirmation = (env.getProperty('ASK_CONFIRMATION') ?: true).toBoolean()
checkTimeSync = (env.getProperty('CHECK_TIME_SYNC') ?: true).toBoolean()
-if (common.validInputParam(VERIFICATION_RETRIES) && VERIFICATION_RETRIES.isInteger()) {
+if (common.validInputParam('VERIFICATION_RETRIES') && VERIFICATION_RETRIES.isInteger()) {
verificationRetries = VERIFICATION_RETRIES.toInteger()
} else {
verificationRetries = 5
@@ -84,7 +84,7 @@
common.retry(verificationRetries, 15) {
exitCode = openstack.verifyGaleraStatus(pepperEnv, false, false)
if (exitCode >= 1) {
- error("Verification attempt finished with an error. This may be caused by cluster not having enough time to come up or to sync. Next verification attempt in 5 seconds.")
+ error("Verification attempt finished with an error. This may be caused by cluster not having enough time to come up or to sync. Next verification attempt in 15 seconds.")
} else {
common.infoMsg("Restoration procedure seems to be successful. See verification report to be sure.")
currentBuild.result = "SUCCESS"