From d9d53d84d833b9ef39c032d5ce752529717b48f0 Mon Sep 17 00:00:00 2001 From: Eugene Petrenko Date: Mon, 24 Sep 2018 16:15:04 +0200 Subject: [PATCH] Optionally print TeamCity service message, only when under TeamCity --- backend.native/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}'] " + } } }