Created
October 31, 2013 19:45
-
-
Save flomotlik/7255656 to your computer and use it in GitHub Desktop.
Webhooks on Codeship
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
If you only want to send a hook for successful builds at the end of your test commands add something like: | |
wget YOUR_URL | |
and it will send the hook whenever your build passes. You can run any command there and aren't limited to wget or anything at all. | |
2) Send a hook for a failed command and fail the build: | |
SOME_COMMAND || bash -c "ANY_COMMAND_TO_SEND_HOOK; exit 1" | |
In Bash || is or so it executes only if SOME_COMMAND fails | |
http://www.tldp.org/LDP/abs/html/ops.html#ANDOR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment