[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin-deployment] 01/01: Install e-mail notifier
From: |
gnunet |
Subject: |
[libeufin-deployment] 01/01: Install e-mail notifier |
Date: |
Fri, 20 Nov 2020 15:38:34 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin-deployment.
commit 6626dc1c4dc546f686fd43c32641f01debf93113
Author: MS <ms@taler.net>
AuthorDate: Fri Nov 20 15:37:35 2020 +0100
Install e-mail notifier
---
buildbot/master.cfg | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index 07cbf62..0db0862 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -148,10 +148,19 @@ BUILDER_LIST = [
"integration-tests-builder"
]
-# For now, Buildbot uses one password for all the admins.
-with open("/home/libeufin/.buildbot_passwords", "r") as data:
- password_data = data.read()
-passwords = json.loads(password_data)
+emailNotifier = reporters.MailNotifier(
+ fromaddr="libeufin-build@taler.net",
+ sendToInterestedUsers=False,
+ mode=("change"),
+ builders=("integration-tests-builder", "unittests-builder"),
+ extraRecipients=["libeufin@taler.net"],
+ subject="Libeufin build."
+)
+c["services"] = [emailNotifier]
+
+with open("/home/libeufin/.buildbot_accesses", "r") as data:
+ accesses_data = data.read()
+accesses = json.loads(accesses_data)
c["www"] = {
"port": 8020,
@@ -161,9 +170,9 @@ c["www"] = {
},
"allowed_origins": ["https://*.libeufin.tech"],
"avatar_methods": [],
- "auth": util.UserPasswordAuth([(
- "ms", passwords["ms"]
- )]),
+ "auth": util.UserPasswordAuth([
+ (user, password) for user, password in accesses.items()
+ ]),
"authz": util.Authz(
allowRules=[
util.ForceBuildEndpointMatcher(role="admins",
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.