From e5a6ccc270b66df8f60e92d701d1b95c95dbdfec Mon Sep 17 00:00:00 2001 From: Nelson Osacky Date: Wed, 29 Sep 2021 16:51:02 +0200 Subject: [PATCH] set `failOnPassedAfterRetry` inside `retry` block Signed-off-by: Nelson Osacky --- README.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.adoc b/README.adoc index a1384754..8f1ccb2a 100644 --- a/README.adoc +++ b/README.adoc @@ -73,13 +73,13 @@ You may find that local developer builds do not benefit much from retry behaviou ---- boolean isCiServer = System.getenv().containsKey("CI") test { - if (isCiServer) { - retry { + retry { + if (isCiServer) { maxRetries = 2 maxFailures = 20 } + failOnPassedAfterRetry = true } - failOnPassedAfterRetry = true } ----