Skip to content

Commit

Permalink
Use BuildParams.isCi() instead of checking env var (#5368)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Ross <[email protected]>

Signed-off-by: Andrew Ross <[email protected]>
  • Loading branch information
andrross authored Nov 24, 2022
1 parent f411ed4 commit 110e409
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 110e409

Please sign in to comment.