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) } }