Skip to content

Instantly share code, notes, and snippets.

@DanPurdy
Last active August 27, 2016 16:31
Show Gist options
  • Save DanPurdy/0d5fd37e0b1455fe524038c87998a71d to your computer and use it in GitHub Desktop.
Save DanPurdy/0d5fd37e0b1455fe524038c87998a71d to your computer and use it in GitHub Desktop.
Bamboo slack notification script
curl -X POST --data-urlencode \
'payload={
"channel": "#SLACK-CHANNEL",
"username": "Bamboo Bot",
"text": "New Build Started",
"icon_emoji": ":octocat:",
"attachments": [
{
"color":"#CFA700",
"title": "${bamboo.repository.name} build #${bamboo.buildNumber}",
"title_link": "${bamboo.resultsUrl}",
"text": "Build started for branch ${bamboo.repository.git.branch}"
}
]
}' \
https://<YOUR-SLACK-HOOK-HERE>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment