Skip to content

Commit

Permalink
Allow messageFormatters to request the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoît Allard committed Oct 25, 2016
1 parent 2d1a8c2 commit 4a24a9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions master/buildbot/reporters/mail.py
Expand Up @@ -242,7 +242,8 @@ def buildsetComplete(self, key, msg):
self.master, bsid,
wantProperties=self.messageFormatter.wantProperties,
wantSteps=self.messageFormatter.wantSteps,
wantPreviousBuild=self.wantPreviousBuild())
wantPreviousBuild=self.wantPreviousBuild(),
wantLogs=self.messageFormatter.wantLogs)

builds = res['builds']
buildset = res['buildset']
Expand All @@ -262,7 +263,8 @@ def buildComplete(self, key, build):
self.master, buildset, [build],
wantProperties=self.messageFormatter.wantProperties,
wantSteps=self.messageFormatter.wantSteps,
wantPreviousBuild=self.wantPreviousBuild())
wantPreviousBuild=self.wantPreviousBuild(),
wantLogs=self.messageFormatter.wantLogs)
# only include builds for which isMailNeeded returns true
if self.isMailNeeded(build):
self.buildMessage(
Expand Down
1 change: 1 addition & 0 deletions master/buildbot/reporters/message.py
Expand Up @@ -32,6 +32,7 @@ class MessageFormatter(object):
template_type = 'plain'
wantProperties = True
wantSteps = False
wantLogs = False

def __init__(self, template_name=None, template_dir=None, template=None, template_type=None):

Expand Down

0 comments on commit 4a24a9a

Please sign in to comment.