~pieq/checkbox/fix-1484872-env-variables-forced-to-non-international

« back to all changes in this revision

Viewing changes to checkbox-ng/contrib/checkbox-ci-installed-notifier.conf

  • Committer: Zygmunt Krynicki
  • Date: 2014-12-19 12:11:52 UTC
  • mto: This revision was merged to the branch mainline in revision 3516.
  • Revision ID: zygmunt.krynicki@canonical.com-20141219121152-y9vtxajhrd6e1c3l
cep: merge CEPs in to trunk

This patch merges CEPs (aka Checkbox Enhancement Proposals) into trunk.
Those lived on separately for a while as lp:checkbox/cep but in
retrospective nobody knows about them and this should give them some
more exposure. In addition, the move allows new features to land a CEP
document along, making review of complex new features easier to make as
their specification can be seen alongside the patches that implement it.

Due to bazaar limitations in merging separate repositories together I've
discarded history entries (not that there were many) and just added
those files in directly.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
start on checkbox-sru-started
14
14
 
15
15
task
16
 
# Note that the autostart file here for server is different
17
 
# in upstart and systemd version
 
16
 
18
17
env CHECKBOX_SERVER_CONF=/etc/init/checkbox-sru.conf
19
18
env CHECKBOX_DESKTOP_XDG=/etc/xdg/autostart/checkbox-sru.desktop
20
19
 
24
23
end script
25
24
 
26
25
script
27
 
    exec /usr/bin/checkbox-ci-script.sh notification
 
26
    . /etc/default/plainbox-ci-mailer
 
27
    [ -z "$SUBMIT_CGI" ] && exit 1
 
28
    RELEASE=$(lsb_release -ds)
 
29
    IP=$(ip addr show dev eth0 |grep "inet " |cut -f 6 -d " ")
 
30
    HOST=$(hostname)
 
31
    if [ -f $CHECKBOX_SERVER_CONF ]; then
 
32
        curl -F mini_ci_notification_installed="CheckBox NG CI testing run has installed on $RELEASE server $HOST $IP" $SUBMIT_CGI
 
33
    elif [ -f $CHECKBOX_DESKTOP_XDG ]; then
 
34
        curl -F mini_ci_notification_installed="CheckBox NG CI testing run has installed on $RELEASE desktop $HOST $IP" $SUBMIT_CGI
 
35
    else
 
36
        curl -F mini_ci_notification_installed="CheckBox NG CI testing run installation has something wrong on $RELEASE $HOST $IP" $SUBMIT_CGI
 
37
    fi
28
38
end script