Created
July 20, 2015 16:24
-
-
Save giovaneliberato/2a8ecb9b8f107f3eaf22 to your computer and use it in GitHub Desktop.
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
#!/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