From 2bdef2fb3a26b8ffa845d1802082d678053637cd Mon Sep 17 00:00:00 2001 From: Brian Seeders Date: Tue, 19 Jan 2021 16:24:57 -0500 Subject: [PATCH] [CI] Gate TeamCity Slack notifications by CI reporting flag (#88742) (#88758) --- .teamcity/src/Extensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.teamcity/src/Extensions.kt b/.teamcity/src/Extensions.kt index 08ab17bc69c6d..0a8abf4a149cf 100644 --- a/.teamcity/src/Extensions.kt +++ b/.teamcity/src/Extensions.kt @@ -50,7 +50,7 @@ fun BuildType.addTestSettings() { fun BuildType.addSlackNotifications(to: String = "#kibana-teamcity-testing") { params { - param("elastic.slack.enabled", "true") + param("elastic.slack.enabled", isReportingEnabled().toString()) param("elastic.slack.channels", to) } }