[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:
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
|
||||
|
||||
Reference in New Issue
Block a user