Skip to content

Commit

Permalink
[CI] Gate TeamCity Slack notifications by CI reporting flag (elastic#…
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders authored Jan 19, 2021
1 parent 97d0874 commit 2bdef2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .teamcity/src/Extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 2bdef2f

Please sign in to comment.