Changeset 713 for branches


Ignore:
Timestamp:
Oct 27, 2007 9:09:44 AM (12 years ago)
Author:
jpfasano
Message:

modified email message a little

Location:
branches/testScripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBbuildConfig.py

    r708 r713  
    252252        error_msg = result
    253253        error_msg['configure flags']=configOptions
    254         error_msg['project release']=configuration['svnVersion']
     254        error_msg['svn version']=configuration['svnVersion']
    255255        # Add contents of log file to message
    256256        logFileName = 'config.log'
     
    277277  if result['returnCode'] != 0 :
    278278    result['configure flags']=configOptions
    279     result['project release']=configuration['svnVersion']
     279    result['svn version']=configuration['svnVersion']
    280280    NBemail.sendCmdMsgs(configuration['project'],result,'make')
    281281    return
     
    297297  if didMakeTestFail :
    298298    result['configure flags']=configOptions
    299     result['project release']=configuration['svnVersion']
     299    result['svn version']=configuration['svnVersion']
    300300    result['make test']=didMakeTestFail
    301301    NBemail.sendCmdMsgs(configuration['project'],result,"make test")
     
    332332    if didUnitTestFail :
    333333      result['configure flags']=configOptions
    334       result['project release']=configuration['svnVersion']
     334      result['svn version']=configuration['svnVersion']
    335335      result['unitTest']=didUnitTestFail
    336336      NBemail.sendCmdMsgs(p,result,unitTestCmd)
  • branches/testScripts/NBemail.py

    r710 r713  
    3535    toAddrs.append(unscrambledEmailAddress)
    3636
    37   subject = "NightlyBuild: problem with project "+project
    38   if cmdMsgs.has_key('project release') :
    39     subject += " release "+cmdMsgs['project release']
    40   subject+=" when running '" + cmd +"'"
     37  subject = "NightlyBuild on "+sys.platform+": "+project
     38  if cmdMsgs.has_key('svn version') :
     39    subject += " "+cmdMsgs['svn version']
     40  subject+=" Problem with: '" + cmd +"'"
    4141
    42   emailMsg = "Dear projectmanager,\n\n" \
    43    +"the nightly build tests scripts have recognized a failure when building project "+project
    44   if cmdMsgs.has_key('project release') :
    45     emailMsg += " release "+cmdMsgs['project release']
     42  emailMsg = "Subject: "+subject+"\n\n"
     43  emailMsg += "Dear "+project+" Project Manager,\n\n" \
     44   +"The nightly build tests scripts reported a problem when building project "+project
     45  if cmdMsgs.has_key('svn version') :
     46    emailMsg += " from subversion version "+cmdMsgs['svn version']+'\n'
    4647  emailMsg += ". The failing command was\n\n\t"+cmd+"\n\n" \
    4748   +"Details on the problem can be found below.\n" \
    48    +"You will also get a failure message if the build of your project failed because of problems with a depending projects (externals).\n" \
     49   +"The cause of the problem may be from one of the projects that "\
     50   +project+" depends on (externals).\n" \
    4951   +"We hope you find this report useful.\n\n"
     52
     53  if cmdMsgs.has_key("configure flags") :
     54    emailMsg += "Flags for configure: "+cmdMsgs['configure flags']+'\n'
    5055
    5156  emailMsg += "Operating System: "+sys.platform+" "+os.name+"\n"
     
    6368
    6469  emailMsg += "Directory: "+curDir+'\n'
    65 
    66   if cmdMsgs.has_key("configure flags") :
    67     emailMsg += "Flags for configure: "+cmdMsgs['configure flags']+'\n'
    6870
    6971  if cmdMsgs.has_key('make test') :
Note: See TracChangeset for help on using the changeset viewer.