summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2021-01-27 16:05:41 +0100
committerMS <ms@taler.net>2021-01-27 16:05:41 +0100
commite935c28f7636b89e016aee8a76d16aea91f11497 (patch)
treeab196a6a4d01bd00b3a78d0231c44ffb9812579d
parent5a2f776ee77470ef261348855be9ba5ecc58cb65 (diff)
downloadlibeufin-deployment-e935c28f7636b89e016aee8a76d16aea91f11497.tar.gz
libeufin-deployment-e935c28f7636b89e016aee8a76d16aea91f11497.tar.bz2
libeufin-deployment-e935c28f7636b89e016aee8a76d16aea91f11497.zip
reduce notification text
-rw-r--r--buildbot/master.cfg10
1 files changed, 9 insertions, 1 deletions
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index 6a996f4..497eb85 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -135,13 +135,21 @@ c["buildbotURL"] = "https://buildbot.libeufin.tech/"
BUILDER_LIST = ["all-builder"]
+def writeEmail(mode, name, build, results, master_status):
+ from buildbot.status.builder import Results
+ result = Results[results]
+ ret = dict(subject=f"libeufin build: {result})
+ if result != "success":
+ ret.append(dict(body="See: " + master_status.getURLForThing(build)))
+ return ret
+
emailNotifier = reporters.MailNotifier(
fromaddr="libeufin-build@taler.net",
sendToInterestedUsers=False,
mode=("change"),
builders=("all-builder"),
extraRecipients=["libeufin@taler.net"],
- subject="Libeufin build."
+ messageFormatter=writeEmail
)
c["services"] = [emailNotifier]