Package buildbot :: Package status :: Module mail
[hide private]
[frames] | no frames]

Module mail

source code

Classes [hide private]
  Domain
  MailNotifier
This is a status notifier which sends email to a list of recipients upon the completion of each build.
Functions [hide private]
 
message(attrs)
Generate a buildbot mail message and return a tuple of message text and type.
source code
Variables [hide private]
  canDoAttachments = False
  VALID_EMAIL = re.compile("[a-zA-Z0-9\.\_\%\-\+]+@[a-zA-Z0-9\.\...
Function Details [hide private]

message(attrs)

source code 
Generate a buildbot mail message and return a tuple of message text
and type.

This function can be replaced using the customMesg variable in MailNotifier.
A message function will *always* get a dictionary of attributes with
the following values:

  builderName - (str) Name of the builder that generated this event.
  
  projectName - (str) Name of the project.
  
  mode - (str) Mode set in MailNotifier. (failing, passing, problem, change).
  
  result - (str) Builder result as a string. 'success', 'warnings',
           'failure', 'skipped', or 'exception'
           
  buildURL - (str) URL to build page.
  
  buildbotURL - (str) URL to buildbot main page.
  
  buildText - (str) Build text from build.getText().

  buildProperties - (Properties) Mapping of property names to values
  
  slavename - (str) Slavename.
  
  reason - (str) Build reason from build.getReason().
  
  responsibleUsers - (List of str) List of responsible users.
  
  branch - (str) Name of branch used. If no SourceStamp exists branch
           is an empty string.
           
  revision - (str) Name of revision used. If no SourceStamp exists revision
             is an empty string.
             
  patch - (str) Name of patch used. If no SourceStamp exists patch
          is an empty string.

  changes - (list of objs) List of change objects from SourceStamp. A change
            object has the following useful information:
            
            who - who made this change
            revision - what VC revision is this change
            branch - on what branch did this change occur
            when - when did this change occur
            files - what files were affected in this change
            comments - comments reguarding the change.

            The functions asText and asHTML return a list of strings with
            the above information formatted. 
          
  logs - (List of Tuples) List of tuples that contain the log name, log url
         and log contents as a list of strings.


Variables Details [hide private]

VALID_EMAIL

Value:
re.compile("[a-zA-Z0-9\.\_\%\-\+]+@[a-zA-Z0-9\.\_\%\-]+.[a-zA-Z]{2,6}"\
)