Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 23 lines (20 sloc) 0.462 kb
a9f3db4 @antono Examples scripts for notifications via email (git hooks)
antono authored
1 #!/bin/sh
2 #
3 # Put this file to $PROJECT/.git/hooks/ for email notifications.
4 #
5 # You should have mail command provided by mailutils package on Debian
6 # based systems.
7 #
8 # sudo apt-get install mailutils
9 #
10 # You should have mail server running
11 #
12 # Do not forget: chmod +x build-failed
13 #
14 echo "
15 Visit http://ci.example.org/ for details
16
17 Author: $AUTHOR
18 Message:
19 $MESSAGE
20
21 $OUTPUT
22 " | mail -s "[example.org] BUILD FAILED $SHA" --to first@gmail.com second@gmail.com
Something went wrong with that request. Please try again.