[Build] Fix usage of --scan parameter with test retry
Gradle fails to configure test retry when `--scan` parameter is present It happens due to some race in plugin application and creation of a test extension ^KTI-1339
This commit is contained in:
committed by
Space Team
parent
e89334e5ba
commit
ecd06ac47b
@@ -13,6 +13,7 @@ fun Project.configureTestRetriesForTestTasks() {
|
|||||||
?.toString()?.toInt()
|
?.toString()?.toInt()
|
||||||
?: (if (kotlinBuildProperties.isTeamcityBuild) 3 else 0)
|
?: (if (kotlinBuildProperties.isTeamcityBuild) 3 else 0)
|
||||||
|
|
||||||
|
pluginManager.withPlugin("gradle-enterprise") {
|
||||||
tasks.withType<Test>().configureEach {
|
tasks.withType<Test>().configureEach {
|
||||||
retry {
|
retry {
|
||||||
maxRetries.set(testRetryMaxRetries)
|
maxRetries.set(testRetryMaxRetries)
|
||||||
@@ -21,3 +22,4 @@ fun Project.configureTestRetriesForTestTasks() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user