Allow disabling retry tests with parameters on CI
This commit is contained in:
committed by
TeamCityServer
parent
604f217360
commit
b76e670ad5
Generated
+1
-1
@@ -70,7 +70,7 @@
|
|||||||
<component name="ProjectResources">
|
<component name="ProjectResources">
|
||||||
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
|
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PsiViewerSettings">
|
<component name="PsiViewerSettings">
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
|
|
||||||
apply(plugin = "org.gradle.test-retry")
|
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 {
|
tasks.withType<Test>().configureEach {
|
||||||
configure<org.gradle.testretry.TestRetryTaskExtension> {
|
configure<org.gradle.testretry.TestRetryTaskExtension> {
|
||||||
maxRetries.set(if (kotlinBuildProperties.isTeamcityBuild) 3 else 0)
|
maxRetries.set(testRetryMaxRetries)
|
||||||
maxFailures.set(20)
|
maxFailures.set(20)
|
||||||
failOnPassedAfterRetry.set(false)
|
failOnPassedAfterRetry.set(false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user