1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# CheckBox mini CI mailer.
#
# This waits for a "checkbox-sru-finished" event and then
# uses curl to post one of two possible log files
# to a configurable CGI URL. The CGI can do whatever it
# wants, such as emailing the report.
#
# An /etc/default/plainbox-ci-mailer config file
# with the SUBMIT_CGI variable defined is expected.
description "CheckBox SRU mini CI mailer"
start on checkbox-sru-finished
task
env CHECKBOX_UPSTART_LOG=/tmp/checkbox-server.log
env CHECKBOX_DESKTOP_LOG=/tmp/checkbox.log
pre-start script
[ -f /etc/default/plainbox-ci-mailer ] || exit 1
[ -x /usr/bin/curl ] || exit 1
end script
script
rm -f /etc/xdg/autostart/checkbox-sru.desktop
exec /usr/bin/checkbox-ci-script.sh mailer
end script
|