Skip to content

Instantly share code, notes, and snippets.

@giovaneliberato
Created July 20, 2015 16:24
Show Gist options
  • Save giovaneliberato/2a8ecb9b8f107f3eaf22 to your computer and use it in GitHub Desktop.
Save giovaneliberato/2a8ecb9b8f107f3eaf22 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [ "$1" == "green" ] ; then
curl -X POST --data-urlencode "payload={\"text\": \"Build is GREEN! Uhuull.\"}" <your-url>
elif [ "$1"== "red" ] ; then
curl -X POST --data-urlencode "payload={\"text\": \"Build is RED!!!\"}" <your-url>
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment