Skip to content

Instantly share code, notes, and snippets.

@ArtSabintsev
Created January 13, 2016 17:52
Show Gist options
  • Save ArtSabintsev/38947954cf4a86ff93b4 to your computer and use it in GitHub Desktop.
Save ArtSabintsev/38947954cf4a86ff93b4 to your computer and use it in GitHub Desktop.
Xcode Bots to Slack
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