Created
January 13, 2016 17:52
-
-
Save ArtSabintsev/38947954cf4a86ff93b4 to your computer and use it in GitHub Desktop.
Xcode Bots to Slack
This file contains 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
PAYLOAD="{\"username\": \"Xcode Bot\", | |
\"text\": \"${XCS_BOT_NAME} Status: ${XCS_INTEGRATION_RESULT}.\nErrors: ${XCS_ERROR_COUNT}\nWarnings: ${XCS_WARNING_COUNT}\nFailed Tests: ${XCS_TEST_FAILURE_COUNT}\nAnalyzer Issues: ${XCS_ANALYZER_WARNING_COUNT}\",\"icon_emoji\": \":robot_face:\"}" | |
echo $PAYLOAD | |
curl -X POST --data-urlencode "payload=${PAYLOAD}" https://hooks.slack.com/services/<slack_room_id> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment