Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.1 KiB

  1. use strict;
  2. use lib $ENV{ "RazzleToolPath" };
  3. require $ENV{ "RazzleToolPath" } . "\\sendmsg.pl";
  4. # simple utility to send a mail to the different Pseudo enterested parties.
  5. my( $Sender, $Subject, $Message, @Recips );
  6. my( $ExitCode, @FileLines, $Line, $MailFileName );
  7. $Subject = $ENV{"_BuildBranch"}." ". $ENV{"LANG"}." ". $ENV{"BuildName"}." build failed. Please investigate !!!";
  8. if(lc("$ENV{_BuildBranch}") =~ /main/i) {
  9. @Recips = ( 'NTPSLOC' , 'replyto:NTPSLOC' );
  10. }
  11. if(lc("$ENV{_BuildBranch}") =~ /srv03_rtm/i) {
  12. @Recips = ( 'NTPSLOC' , 'replyto:NTPSLOC' );
  13. }
  14. if(lc("$ENV{_BuildBranch}") =~ /lab01_n/i) {
  15. @Recips = ( 'NTPSLOC','bryant' , 'replyto:NTPSLOC' );
  16. }
  17. if(lc("$ENV{_BuildBranch}") =~ /lab02_n/i) {
  18. @Recips = ( 'NTPSLOC','NetVBL' , 'replyto:NTPSLOC' );
  19. }
  20. if(lc("$ENV{_BuildBranch}") =~ /lab03_DEV/i) {
  21. @Recips = ( 'NTPSLOC','domtho' , 'replyto:NTPSLOC' );
  22. }
  23. if(lc("$ENV{_BuildBranch}") =~ /lab04_n/i) {
  24. @Recips = ( 'NTPSLOC','MGMTBVT','MGMTBLD' , 'replyto:NTPSLOC' );
  25. }
  26. if(lc("$ENV{_BuildBranch}") =~ /lab06_n/i) {
  27. @Recips = ( 'NTPSLOC','deskvbt' , 'replyto:NTPSLOC');
  28. }
  29. if(lc("$ENV{_BuildBranch}") =~ /lab07_n/i) {
  30. @Recips = ( 'NTPSLOC','niksta' , 'replyto:NTPSLOC' );
  31. }
  32. if(lc("$ENV{_BuildBranch}") =~ /jasbr/i) {
  33. @Recips = ( 'NTPSLOC','niksta' , 'replyto:NTPSLOC' );
  34. }
  35. $ExitCode = 0;
  36. $Sender = "NTPSLOC";
  37. #$Message .="<html><body><p style='font-family:Arial; font-size:10 pt; font-weight=regular;'>";
  38. #$Message .=$Subject;
  39. #$Message .="<Br>Build failed on <a href='file:////";
  40. #$Message .=$ENV{ "COMPUTERNAME" };
  41. #$Message .="'>\\\\";
  42. #$Message .=$ENV{ "COMPUTERNAME" };
  43. #$Message .="</a> build machine<BR><BR>Contact <a href='mailto:NTPSLOC'>NTPSLOC</a> if you need additional assistance.</p><p style='font-family:Arial; font-size:8 pt; font-weight=bold; font-color:#000080;' >Your friends,<Br>NTPSLOC</p></body></HTML>";
  44. $Message .=$Subject;
  45. $Message .="\n\nBuild failed on \\\\";
  46. $Message .=$ENV{ "COMPUTERNAME" };
  47. $Message .=" build machine\n\nContact mailto:NTPSLOC if you need additional assistance.\n\nYour friends,\nNTPSLOC";
  48. sendmsg( $Sender, $Subject, $Message, @Recips );
  49. exit( $ExitCode );