[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: BB, filter log lines
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: BB, filter log lines |
Date: |
Fri, 02 Jul 2021 14:46:01 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new d9d703f BB, filter log lines
d9d703f is described below
commit d9d703fb96d13b121a2f2442161c200535f6e4d1
Author: ms <ms@taler.net>
AuthorDate: Fri Jul 2 14:45:57 2021 +0200
BB, filter log lines
---
buildbot/master.cfg | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index 9a56426..bc542d3 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -55,6 +55,19 @@ WORKERS = []
# targets. buildbot/reporters/*.py has a variety to choose from,
# like IRC bots.
+
+class MessageFormatterWithStdout(reporters.MessageFormatter):
+ def buildAdditionalContext(self, master, ctx):
+ stdout = []
+ for step in ctx["build"]["steps"]:
+ for log in step["logs"]:
+ all_logs = log["content"]["content"].splitlines()
+ # Including only what the script printed on stdout.
+ for line in all_logs:
+ if re.search("^o", line):
+ stdout.append(line[1:])
+ ctx.update(dict(stdout="\n".join(stdout)))
+
tipReserveEmails = reporters.MailNotifier(
fromaddr="buildbot@taler.net", # to be sent to a dedicate alias
sendToInterestedUsers=False,
@@ -62,14 +75,10 @@ tipReserveEmails = reporters.MailNotifier(
builders=["check-tips-builder"],
extraRecipients=["tips@taler.net"],
dumpMailsToLog=True, # debug, to remove
- messageFormatter=reporters.MessageFormatter(
+ messageFormatter=reporters.MessageFormatterWithStdout(
wantSteps=True,
wantLogs=True,
- template="""
- {% for step in build['steps'] %}
- {% logs = yield master.data.get("logs", step['logid'],
"contents") %}
- {{ logs }}
- {% endfor %}""", # usually one step
+ template="{{ stdout }}",
subject="tips availability on demo")
)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-deployment] branch master updated: BB, filter log lines,
gnunet <=