From 110e409dcd399f002a624dda2df3aaf31b233cd6 Mon Sep 17 00:00:00 2001 From: Andrew Ross Date: Wed, 23 Nov 2022 17:35:04 -0800 Subject: [PATCH] Use BuildParams.isCi() instead of checking env var (#5368) Signed-off-by: Andrew Ross Signed-off-by: Andrew Ross --- build.gradle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index eefa999f26aa8..2211da85345b5 100644 --- a/build.gradle +++ b/build.gradle @@ -450,12 +450,11 @@ gradle.projectsEvaluated { } // test retry configuration -boolean isCiServer = System.getenv().containsKey("CI") subprojects { apply plugin: "org.gradle.test-retry" tasks.withType(Test).configureEach { retry { - if (isCiServer) { + if (BuildParams.isCi()) { maxRetries = 3 maxFailures = 10 }