Changeset 748 for branches


Ignore:
Timestamp:
Nov 10, 2007 10:01:16 AM (12 years ago)
Author:
jpfasano
Message:

Added sending an email msg to the person running the script containing log of what happened

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/nightlyBuild.py

    r741 r748  
    88import os
    99import sys
     10from socket import gethostname
    1011import NBprojectConfig
    1112import NBlogMessages
     
    228229NBlogMessages.writeMessage( "nightlyBuild.py Finished" )
    229230
     231# Email log messages to person running script
     232toAddrs = [NBemail.unscrambleAddress(MY_EMAIL_ADDR)]
     233subject = "NightlyBuild Log from "+gethostname()+" on "+sys.platform
     234NBemail.send(toAddrs,subject,NBlogMessages.getAllMessages())
     235
    230236sys.exit(0)
    231237
Note: See TracChangeset for help on using the changeset viewer.