Skip to content

Instantly share code, notes, and snippets.

@DamianStanger
Created December 9, 2015 17:22
Show Gist options
  • Save DamianStanger/5834ce7dc33e6540538d to your computer and use it in GitHub Desktop.
Save DamianStanger/5834ce7dc33e6540538d to your computer and use it in GitHub Desktop.
config file to drive the gocd.slack integration found here https://github.com/ashwanthkumar/gocd-slack-build-notifier
gocd.slack {
login = "..."
password = "..."
server-host = "https://go...com:8154/"
webhookUrl = "https://hooks.slack.com/services/aaa/bbb/ccc"
# optional fields
channel = "#slack-test"
slackDisplayName = "go-server"
slackUserIconURL = "https://www.thoughtworks.com/imgs/products/go-logo.png"
pipelines = [{
name = ".*"
stage = ".*([Bb]uild|[Tt]est|[Pp]ackage).*"
state = "failed|fixed"
channel = "#commit-log"
},{
name = ".*[Dd]eploy.*"
stage = ".*"
state = "failed|fixed"
channel = "#devops"
},{
name = ".*"
stage = ".*"
state = "passed|failed|cancelled"
channel = "#go-log"
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment