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 and reta committed Nov 24, 2022
1 parent f3e2d7f commit f78f90f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,19 @@ gradle.projectsEvaluated {
}
}
}

// test retry configuration
subprojects {
apply plugin: "org.gradle.test-retry"
tasks.withType(Test).configureEach {
retry {
if (BuildParams.isCi()) {
maxRetries = 3
maxFailures = 10
}
failOnPassedAfterRetry = false
}
}
}

// eclipse configuration
Expand Down

0 comments on commit f78f90f

Please sign in to comment.