diff --git a/backend.native/build.gradle b/backend.native/build.gradle index 989c583af27..b0803ab52ab 100644 --- a/backend.native/build.gradle +++ b/backend.native/build.gradle @@ -178,8 +178,10 @@ task zipStdLibSources(type: Zip, dependsOn: unzipStdlibSources) { task teamcityPublishStdLibSources { dependsOn zipStdLibSources - doLast { - println " ##teamcity[publishArtifacts '${tasks.zipStdLibSources.archivePath}'] " + if (System.getenv("TEAMCITY_BUILD_PROPERTIES_FILE") != null) { + doLast { + println " ##teamcity[publishArtifacts '${tasks.zipStdLibSources.archivePath}'] " + } } }