Try ci-job notifications
This commit is contained in:
parent
77d1ea5b23
commit
039b3ae2d8
|
@ -94,6 +94,6 @@ in {
|
|||
abcde beets zbar
|
||||
|
||||
# media
|
||||
ncpamixer pavucontrol deluge gmpc mpv youtubeDL syncplay;
|
||||
ncpamixer pavucontrol deluge gmpc vlc mpv youtubeDL syncplay;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -31,12 +31,15 @@ let
|
|||
(default_mailbox // {
|
||||
MailboxName = "monitoring";
|
||||
MatrixRoomId = "!negVsngnYOmXYCLKiO:maralorn.de";
|
||||
SkipMarkdown = true;
|
||||
})
|
||||
(default_mailbox // {
|
||||
MailboxName = "weather";
|
||||
MatrixRoomId = "!ELeFcSrHXgMqOmwnxg:maralorn.de";
|
||||
})
|
||||
(default_mailbox // {
|
||||
MailboxName = "ci-jobs";
|
||||
MatrixRoomId = "!SNZCOObhEvTgSVwvbq:maralorn.de";
|
||||
})
|
||||
];
|
||||
};
|
||||
Misc = { Debug = true; };
|
||||
|
|
|
@ -37,6 +37,21 @@ in {
|
|||
lib.makeBinPath [ pkgs.laminar pkgs.nix ]
|
||||
}:$PATH nix-jobs realise-here "$DERIVATION"
|
||||
'';
|
||||
"after" = pkgs.writeShellScript "after-all-jobs-script" ''
|
||||
TO_EMAIL="ci-jobs-channel@email2matrix.maralorn.de"
|
||||
FROM_EMAIL="laminar@hera.m-0.eu"
|
||||
|
||||
LAMINAR_URL="ci.maralorn.de"
|
||||
|
||||
sendmail -t <<EOF
|
||||
From: $FROM_EMAIL
|
||||
To: $TO_EMAIL
|
||||
Subject: $JOB #$RUN: $RESULT
|
||||
Mime-Version: 1.0
|
||||
Content-Type: text/plain; charset=utf-8
|
||||
$(curl -s $LAMINAR_URL/log/$JOB/$RUN)
|
||||
EOF
|
||||
'';
|
||||
};
|
||||
contexts = {
|
||||
"default.conf" = builtins.toFile "default.conf" "EXECUTORS=16";
|
||||
|
|
Loading…
Reference in a new issue