Skip to content

Instantly share code, notes, and snippets.

@flomotlik
Created October 31, 2013 19:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flomotlik/7255656 to your computer and use it in GitHub Desktop.
Save flomotlik/7255656 to your computer and use it in GitHub Desktop.
Webhooks on Codeship
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