Last active
August 27, 2016 16:31
-
-
Save DanPurdy/0d5fd37e0b1455fe524038c87998a71d to your computer and use it in GitHub Desktop.
Bamboo slack notification script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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