1
0
Fork 0

Try ci-job notifications

This commit is contained in:
Malte Brandy 2021-01-08 22:57:24 +01:00
parent 77d1ea5b23
commit 039b3ae2d8
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
3 changed files with 20 additions and 2 deletions

View file

@ -94,6 +94,6 @@ in {
abcde beets zbar
# media
ncpamixer pavucontrol deluge gmpc mpv youtubeDL syncplay;
ncpamixer pavucontrol deluge gmpc vlc mpv youtubeDL syncplay;
};
}

View file

@ -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; };

View file

@ -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";