Changeset 770 for branches


Ignore:
Timestamp:
Nov 14, 2007 4:56:15 AM (12 years ago)
Author:
stefan
Message:

create history of commands for a build type and put into email

Location:
branches/testScripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBbuildConfig.py

    r760 r770  
    148148  NBlogMessages.writeMessage('  Build directory: '+fullBuildDir)
    149149 
     150  #for a list of commands that have been executed
     151  commandHistory = []
    150152
    151153  #---------------------------------------------------------------------
     
    190192           svnCheckOutUrl +\
    191193           ' '+svnVersionFlattened
     194      commandHistory+=[ svnCmd ]
    192195      if NBsvnCommand.run(svnCmd,projectBaseDir,configuration['project'])!='OK' :
    193196        return
    194197    else :
    195198      svnCmd='svn update'
     199      commandHistory+=[ svnCmd ]
    196200      if NBsvnCommand.run(svnCmd,projectCheckOutDir,configuration['project'])!='OK' :
    197201        return
     
    222226              if os.path.isfile(install3rdPartyCmd) :
    223227                NBlogMessages.writeMessage('  '+install3rdPartyCmd)
     228                commandHistory+=[ install3rdPartyCmd ]
    224229                installReturn = NBosCommand.run(install3rdPartyCmd)
    225230                if installReturn['returnCode'] :
     
    228233                  f=open('NBinstalldone','w')
    229234                  f.close()
    230                 writeResults(installReturn,install3rdPartyCmd) 
     235                writeResults(installReturn,install3rdPartyCmd)
    231236            else :
    232237              NBlogMessages.writeMessage('  skipped a new download of '+d)
     
    280285  #  else :
    281286    NBlogMessages.writeMessage("  "+configCmd)
     287    commandHistory+=[ configCmd ]
    282288
    283289    # Finally run config
     
    290296        error_msg['configure flags']=configOptions
    291297        error_msg['svn version']=configuration['svnVersion']
     298        error_msg['command history']=commandHistory
    292299        # Add contents of log file to message
    293300        logFileName = 'config.log'
     
    303310    #---------------------------------------------------------------------
    304311    NBlogMessages.writeMessage( '  make' )
     312    commandHistory+=[ 'make' ]
    305313    result=NBosCommand.run('make')
    306314    writeResults(result,'make')
     
    310318      result['configure flags']=configOptions
    311319      result['svn version']=configuration['svnVersion']
     320      result['command history']=commandHistory
    312321      NBemail.sendCmdMsgs(configuration['project'],result,'make')
    313322      return
     
    338347
    339348    NBlogMessages.writeMessage("  "+vcbuild)
     349    commandHistory+=[ vcbuild ]
    340350
    341351    # Finally run vcbuild
     
    347357        error_msg = result
    348358        error_msg['svn version']=configuration['svnVersion']
     359        error_msg['command history']=commandHistory
    349360        NBemail.sendCmdMsgs(configuration['project'],error_msg,vcbuild)
    350361        return
     
    367378
    368379      NBlogMessages.writeMessage( '  '+testCmd )
     380      commandHistory+=[ testCmd ]
    369381      result=NBosCommand.run(testCmd)
    370382      writeResults(result,testCmd)
     
    375387          result['svn version']=configuration['svnVersion']
    376388          result['test']=testResultFail
     389          result['command history']=commandHistory
    377390          NBemail.sendCmdMsgs(configuration['project'],result,testCmd)
    378391          return
  • branches/testScripts/NBemail.py

    r741 r770  
    8080    emailMsg += cmdMsgs['test']
    8181    emailMsg += "\n"
     82   
     83  if cmdMsgs.has_key('command history') :
     84    emailMsg += "\nHistory of commands called for this build:\n"
     85    for cmditem in cmdMsgs['command history'] :
     86      emailMsg += "  "+cmditem+"\n"
    8287
    8388  emailMsg +="\nnightlyBuildScript log:\n"
Note: See TracChangeset for help on using the changeset viewer.