From 693b71d3b2a3f725fda6cc338b3803c7c6b72d37 Mon Sep 17 00:00:00 2001 From: Daniel Widdis Date: Fri, 26 Jan 2024 17:07:45 -0800 Subject: [PATCH] Fix Integ test retry configiration (#463) Signed-off-by: Daniel Widdis --- build.gradle | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 82680f777..fd5f23e94 100644 --- a/build.gradle +++ b/build.gradle @@ -408,13 +408,15 @@ task integTestRemote(type: RestIntegTestTask) { // test retry configuration -subprojects { +allprojects { apply plugin: "org.gradle.test-retry" tasks.withType(RestIntegTestTask).configureEach { retry { - failOnPassedAfterRetry = false - maxRetries = 3 - maxFailures = 10 + if (System.getenv().containsKey("CI")) { + maxRetries = 1 + maxFailures = 3 + failOnPassedAfterRetry = false + } } } }