]> Humopery - private/buildbot-default.git/commitdiff
Explicitly set report generators. These are identical to the defaults in mail.py
authorErik Mackdanz <erikmack@gmail.com>
Wed, 28 Aug 2024 04:56:40 +0000 (04:56 +0000)
committerErik Mackdanz <erikmack@gmail.com>
Wed, 28 Aug 2024 04:56:40 +0000 (04:56 +0000)
master.cfg

index b22625c4f69dbef8cb0d3affe6f7b263791e122a..de37555c00070357e9d9a9103045c42e2f4bd57d 100644 (file)
@@ -152,6 +152,11 @@ c['builders'].append(
 # status of each build will be pushed to these targets. buildbot/reporters/*.py
 # has a variety to choose from, like IRC bots.
 
+from buildbot.reporters.generators.build import BuildStatusGenerator
+from buildbot.reporters.generators.worker import WorkerMissingGenerator
+from buildbot.reporters.message import MessageFormatter
+from buildbot.reporters.message import MessageFormatterMissingWorker
+
 c['services'] = []
 mn = reporters.MailNotifier(fromaddr="Humopery Buildbot <buildbot@humopery.space>",
                             sendToInterestedUsers=False,
@@ -161,7 +166,18 @@ mn = reporters.MailNotifier(fromaddr="Humopery Buildbot <buildbot@humopery.space
                             smtpPassword=util.Secret("unix.pass"),
                             useTls=True,
                             useSmtps=True,
-                            extraRecipients=["erik@humopery.space","erikmack@gmail.com"])
+                            extraRecipients=["erik@humopery.space","erikmack@gmail.com"],
+                            generators=[
+                                BuildStatusGenerator(
+                                    add_patch=True,
+                                    message_formatter=MessageFormatter(template_type='html')
+                                ),
+                                WorkerMissingGenerator(
+                                    workers='all',
+                                    message_formatter=MessageFormatterMissingWorker(template_type='html')
+                                ),
+                            ]
+                            )
 c['services'].append(mn)