commit | 1ae44be06a6808e18833c4b0a3942d43e6053efd | [log] [tgz] |
---|---|---|
author | mcp-jenkins <mcp-jenkins@mirantis.com> | Mon Jan 14 10:04:13 2019 +0000 |
committer | Gerrit Code Review <mail@domain.com> | Mon Jan 14 10:04:14 2019 +0000 |
tree | 3b071f09bc3d29b0993cddacaad04daa0d9b3d95 | |
parent | 81320bc42c93c3e1c74d222314eec878970dfaae [diff] | |
parent | 900a3afa6e1d75df702a1a5474ed51e3876e4433 [diff] |
Merge "Add more verbosity for Common.retry function"
diff --git a/src/com/mirantis/mk/Common.groovy b/src/com/mirantis/mk/Common.groovy index 8dfec19..aa9b487 100644 --- a/src/com/mirantis/mk/Common.groovy +++ b/src/com/mirantis/mk/Common.groovy
@@ -534,11 +534,11 @@ def retry(int times = 5, int delay = 0, Closure body) { int retries = 0 - def exceptions = [] while (retries++ < times) { try { return body.call() } catch (e) { + errorMsg(e.toString()) sleep(delay) } }