anduril finished mailer

This commit is contained in:
ville rantanen
2014-09-03 15:17:41 +03:00
parent cba2e4f5ef
commit 9ab1691c0a

21
anduril/anduril-vm-mail Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
(
echo 'Subject: Execution finished! '$NETWORK_TO_RUN'
'
echo "Pipeline: $CLEANER_TITLE"
echo -n "Started in: "
pwd
echo "Host: $HOSTNAME"
echo "Execution folder: $RESULTS_IN"
echo "Log folder: $LOG_IN"
[ -f "$LOG_IN"/_global ] && {
echo "===== Log tail ====="
head -n 1 "$LOG_IN"/_global
tail -n 20 "$LOG_IN"/_global
}
) | sendmail -r$USER@mappi.helsinki.fi $USER@mappi.helsinki.fi &