Temporary workaround: use teamcity.build.tempDir instead of java.io.tmpdir
teamcity.build.tempDir is cleaned up between build executions, should be fixed soon on Teamcity side
This commit is contained in:
@@ -98,9 +98,13 @@ fun Project.projectTest(taskName: String = "test", body: Test.() -> Unit = {}):
|
|||||||
environment("PROJECT_BUILD_DIR", buildDir)
|
environment("PROJECT_BUILD_DIR", buildDir)
|
||||||
systemProperty("jps.kotlin.home", rootProject.extra["distKotlinHomeDir"]!!)
|
systemProperty("jps.kotlin.home", rootProject.extra["distKotlinHomeDir"]!!)
|
||||||
systemProperty("kotlin.ni", if (rootProject.hasProperty("newInferenceTests")) "true" else "false")
|
systemProperty("kotlin.ni", if (rootProject.hasProperty("newInferenceTests")) "true" else "false")
|
||||||
System.getProperty("teamcity.build.tempDir")?.let {
|
|
||||||
|
//Temporary workaround for "not enough space" on Teamcity agents: should be fixed soon on Teamcity side
|
||||||
|
val teamcity = rootProject.property("teamcity") as? Map<*, *>
|
||||||
|
(teamcity?.get("teamcity.build.tempDir") as? String)?.let {
|
||||||
systemProperty("java.io.tmpdir", it)
|
systemProperty("java.io.tmpdir", it)
|
||||||
}
|
}
|
||||||
|
|
||||||
body()
|
body()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user