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.

63 lines
1.9 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"}." Completed successfully !!!";
  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 .=$Subject;
  38. $Message .="\n\nBuild Completed successfully on \\\\";
  39. $Message .=$ENV{ "COMPUTERNAME" };
  40. $Message .="\\release\\";
  41. $Message .=$ENV{"LANG"};
  42. $Message .=" build machine.\n";
  43. if(lc("$ENV{_BuildBranch}") =~ /lab04_n/i) {
  44. $Message .="\nThis build can also be found at \\\\";
  45. $Message .=$ENV{ "COMPUTERNAME" };
  46. $Message .="\\latest_";
  47. $Message .=$ENV{"LANG"};
  48. $Message .=" \n";
  49. }
  50. $Message .="\nPlease kick off your BVT process.\n\nYour friends,\nmailto:NTPSLOC";
  51. sendmsg( $Sender, $Subject, $Message, @Recips );
  52. exit( $ExitCode );