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 + } } } }