common/tools/summary/brag_script.pl
changeset 903 4ccad00aa05d
parent 694 260b05585dc3
child 1228 3f4513c7c945
equal deleted inserted replaced
902:6df3172848e9 903:4ccad00aa05d
   606 print BUILDSUMMARYHTML "<br/>$filecontent<br/>"; # copy the content of the index.html file into the build_summary.html file.
   606 print BUILDSUMMARYHTML "<br/>$filecontent<br/>"; # copy the content of the index.html file into the build_summary.html file.
   607 
   607 
   608 close (RAPTORSUMINDEX);
   608 close (RAPTORSUMINDEX);
   609 }
   609 }
   610 
   610 
   611 # Copy html files for raptor summarise to bishare
   611 # Copy html files for raptor summarise to v800020
   612 # options used for xcopy
   612 # options used for xcopy
   613 # /E -> Copies directories and subdirectories, including empty ones.
   613 # /E -> Copies directories and subdirectories, including empty ones.
   614 # /F -> Displays full source and destination file names while copying.
   614 # /F -> Displays full source and destination file names while copying.
   615 # /I -> If destination does not exist and copying more than one file, assumes that destination must be a directory.
   615 # /I -> If destination does not exist and copying more than one file, assumes that destination must be a directory.
   616 my $copy_html = "xcopy $logdir\\html \\\\v800020\\Publish\\sf_builds\\$project\\builds\\$codeline\\$buildid\\html \/E \/F \/I";
   616 my $copy_html = "xcopy $logdir\\html \\\\v800020\\Publish\\sf_builds\\$project\\builds\\$codeline\\$buildid\\html \/E \/F \/I";
   636 # Indicates beginning of DATA BREAKDOWN section in the file
   636 # Indicates beginning of DATA BREAKDOWN section in the file
   637 print BUILDSUMMARYHTML "<br/>#************************************************#<br/><br/>";
   637 print BUILDSUMMARYHTML "<br/>#************************************************#<br/><br/>";
   638 print BUILDSUMMARYHTML "<br/>#********** DATA BREAKDOWN starts here **********#<br/><br/>";
   638 print BUILDSUMMARYHTML "<br/>#********** DATA BREAKDOWN starts here **********#<br/><br/>";
   639 
   639 
   640 
   640 
   641 # Get tree for the directory where the log files are (bishare probably the best place???)
   641 # Get tree for the directory where the log files are (v800020 probably the best place???)
   642 # Should be already exported there, but maybe in a zip file)
   642 # Should be already exported there, but maybe in a zip file)
   643 # Extract each file with directory, then create a hyperlink to that file to make sure that user can click on the link and open the file!
   643 # Extract each file with directory, then create a hyperlink to that file to make sure that user can click on the link and open the file!
   644 
   644 
   645 
   645 
   646 #ex: platform_MCL.PDK-101_summary.log.xml
   646 #ex: platform_MCL.PDK-101_summary.log.xml
   662 close(BUILDSUMMARYHTML); # Close file build_summary.html
   662 close(BUILDSUMMARYHTML); # Close file build_summary.html
   663 
   663 
   664 
   664 
   665 
   665 
   666 # *****************************************************************************
   666 # *****************************************************************************
   667 # Final step, copy build_summary.html to \\bishare drive
   667 # Final step, copy build_summary.html to \\v800020 drive
   668 # *****************************************************************************
   668 # *****************************************************************************
   669 
   669 
   670 # Copy html file to bishare
   670 # Copy html file to v800020
   671 my $copy_cmd = "copy $logdir\\build_summary.html \\\\v800020\\Publish\\sf_builds\\$project\\builds\\$codeline\\$buildid";
   671 my $copy_cmd = "copy $logdir\\build_summary.html \\\\v800020\\Publish\\sf_builds\\$project\\builds\\$codeline\\$buildid";
   672 print "Exec: $copy_cmd\n";
   672 print "Exec: $copy_cmd\n";
   673 system($copy_cmd);
   673 system($copy_cmd);
   674 
   674 
   675 
   675