Allow disabling retry tests with parameters on CI
This commit is contained in:
committed by
TeamCityServer
parent
604f217360
commit
b76e670ad5
@@ -1,9 +1,12 @@
|
||||
|
||||
apply(plugin = "org.gradle.test-retry")
|
||||
|
||||
val testRetryMaxRetries = findProperty("kotlin.build.testRetry.maxRetries")?.toString()?.toInt() ?:
|
||||
(if (kotlinBuildProperties.isTeamcityBuild) 3 else 0)
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
configure<org.gradle.testretry.TestRetryTaskExtension> {
|
||||
maxRetries.set(if (kotlinBuildProperties.isTeamcityBuild) 3 else 0)
|
||||
maxRetries.set(testRetryMaxRetries)
|
||||
maxFailures.set(20)
|
||||
failOnPassedAfterRetry.set(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user