如何使用 buildAdditionalContext 在 Buildbot 上添加更多电子邮件消息?

问题描述

我正在尝试通过函数 buildAdditionalContext 将更多内容添加到 Buildbot 电子邮件中。但它不起作用。

class messageformatterBase(ComparableMixin):

    def buildAdditionalContext(self,master,ctx):
            ctx = {"Server": "Test EMail!!!"}
            return ctx["Server"]
c = BuildmasterConfig = {}

.....

mn = reporters.MailNotifier(fromaddr="buildbot@buildbot.com",sendToInterestedUsers=True,extraRecipients=['Marko@or.com'],messageformatter=reporters.messageformatter(ctx={'Server': 'test how to add ctx!!!'}),dumpMailsToLog=True,relayhost="161.92.81.25",smtpPort=25,smtpUser="buildbot@buildbot.com",smtpPassword="123",lookup=EmailMap())

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)