Skip to content

Commit

Permalink
Use BuildParams.isCi() instead of checking env var
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Ross <andrross@amazon.com>
  • Loading branch information
andrross committed Nov 23, 2022
1 parent 139c2cf commit 459204f
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 459204f

Please sign in to comment.