[docs] Use env variable to detect teamcity build mode

Checking property 'teamcity.version' no longer works with the way
TC passes parameters when configuration cache is enabled.
This commit is contained in:
Ilya Gorbunov
2024-02-23 10:38:09 +01:00
committed by Space Team
parent 7cc2384485
commit caee1a9b2b
@@ -8,7 +8,7 @@ plugins {
id("org.jetbrains.dokka")
}
val isTeamcityBuild = project.hasProperty("teamcity.version")
val isTeamcityBuild = project.hasProperty("teamcity.version") || System.getenv("TEAMCITY_VERSION") != null
// kotlin/libraries/tools/kotlin-stdlib-docs -> kotlin
val kotlin_root = rootProject.file("../../../").absoluteFile.invariantSeparatorsPath