> On Aug 30, 2022, at 8:19 AM, Mark Thomas <ma...@apache.org> wrote:
>
> Hi,
>
> The Tomcat project migrated to ci2 a while ago. Since the migration, the
> Tomcat dev list no longer receives notifications of either failed or fixed
> builds.
>
> I have checked the buildbot configuration and I can't see anything obviously
> wrong.
>
> Any hints as to what we need to do to get notifications flowing again?
The way mail notifications are managed seems to have changed a bit in the newer
versions of buildbot. Take a look at ofbiz.py for an example of a working
config I put together for INFRA-22689. The relevant code:
# mail status-----
template=u'''\
Build status: {{ summary }}
Worker used: {{ workername }}
URL: {{ build_url }}
Blamelist: {{ blamelist | join(', ') }}
Build Text: {{ build['state_string'] }}
Status Detected: {{ status_detected }}
{{ sourcestamps }}
Steps:
{% for step in build['steps'] %}
{{ step['name'] }}: {{ step['results'] }}
{% endfor %}
-- ASF Buildbot
'''
ofbizGenerator = reporters.BuildStatusGenerator(
mode=('all'),
tags=[
"ofbizTrunkFrameworkPlugins",
"ofbizTrunkFramework",
"ofbizBranch18Framework",
"ofbizBranch18FrameworkPlugins",
"ofbizBranch22Framework",
"ofbizBranch22FrameworkPlugins",
"ofbizTrunkFrameworkRat",
"ofbizNextFrameworkRat",
"ofbizStableFrameworkRat",
],
message_formatter=reporters.MessageFormatter(
template=template,
template_type='plain',
want_properties=True,
want_steps=True,
),
)
ofbizNotifier = reporters.MailNotifier(
fromaddr="build...@apache.org",
extraRecipients=["comm...@ofbiz.apache.org"],
sendToInterestedUsers=False,
generators=[ofbizGenerator],
)
bb.add_service(ofbizNotifier)
>
> Thanks,
>
> Mark