2.5.14.1. BuildStatusGenerator
- class buildbot.reporters.BuildStatusGenerator
This report generator sends a message when a build completes. In case a reporter is used to provide a live status notification for both build start and completion, BuildStartEndStatusGenerator is a better option.
The following parameters are supported:
subject(string, optional).
Deprecated since Buildbot 3.5. Please use the
subjectargument of themessage_formatterpassed to the generator.A string to be used as the subject line of the message.
%(builder)swill be replaced with the name of the builder which provoked the message.%(result)swill be replaced with the name of the result of the build.%(title)sand%(projectName)swill be replaced with the title of the Buildbot instance.mode(list of strings or a string, optional). Defines the cases when a message should be sent. There are two strings which can be used as shortcuts instead of the full lists.
The possible shortcuts are:
allSend message for all cases. Equivalent to
('change', 'failing', 'passing', 'problem', 'warnings', 'exception').warningsEquivalent to
('warnings', 'failing').
If the argument is list of strings, it must be a combination of:
cancelledSend message about builds which were cancelled.
changeSend message about builds which change status.
failingSend message about builds which fail.
passingSend message about builds which succeed.
problemSend message about a build which failed when the previous build has passed.
warningsSend message about builds which generate warnings.
exceptionSend message about builds which generate exceptions.
Defaults to
('failing', 'passing', 'warnings').builders(list of strings, optional). A list of builder names to serve build status information for. Defaults to
None(all builds). Use either builders or tags, but not both.tags(list of strings, optional). A list of tag names to serve build status information for. Defaults to
None(all tags). Use either builders or tags, but not both.schedulers(list of strings, optional). A list of scheduler names to serve build status information for. Defaults to
None(all schedulers).branches(list of strings, optional). A list of branch names to serve build status information for. Defaults to
None(all branches).add_logs(boolean or a list of strings, optional). If
True, include all build logs as attachments to the messages. These can be quite large. This can also be set to a list of log names to send a subset of the logs. Defaults toFalse.add_patch(boolean, optional). If
True, include the patch content if a patch was present. Patches are usually used on aTryserver. Defaults toFalse.report_new(boolean, optional) Whether new builds will be reported in addition to finished builds. Defaults to
False.message_formatter(optional, instance of
reporters.MessageFormatter) This is an optional instance of thereporters.MessageFormatterclass that can be used to generate a custom message.