common/tools/summary/brag_script.pl
changeset 377 065183c4417b
parent 375 63fdf0583f67
equal deleted inserted replaced
376:6734444dd1f2 377:065183c4417b
   581 #sf-summary,5
   581 #sf-summary,5
   582 #?????
   582 #?????
   583 
   583 
   584 # End - Check all the intermediate steps of the build process
   584 # End - Check all the intermediate steps of the build process
   585 
   585 
       
   586 # Copy Raptor summarise by DarioS
       
   587 {
       
   588 local $/=undef; # indicates that the file will be put in one variable as one string
       
   589 open(RAPTORSUMINDEX, "<$logdir\\html\\index.html");
       
   590 
       
   591 my $filecontent = <RAPTORSUMINDEX>;
       
   592 
       
   593 
       
   594 # Like index.html will be called from the build_summary.html file, this means that is not calling the sub html file from the same directory \html.
       
   595 # When copy index.html in the file build_summary.html, we need to include the path to \html directory
       
   596 # We have:
       
   597 # file:///F:/fbf_job/serviceapi_3k.T014/output/logs/raptor_unreciped.html
       
   598 # We need:
       
   599 # file:///F:/fbf_job/serviceapi_3k.T014/output/logs/html/raptor_unreciped.html
       
   600 # This means we need to go from:
       
   601 # <tr><td><a href='raptor_unreciped.html'>raptor_unreciped</a></td><td>0</td><td>0</td><td>190</td><td>0</td></tr>
       
   602 # To:
       
   603 # <tr><td><a href='html\raptor_unreciped.html'>raptor_unreciped</a></td><td>0</td><td>0</td><td>190</td><td>0</td></tr>
       
   604 $filecontent =~ s/href=\'/href=\'html\\/ig;
       
   605 
       
   606 print BUILDSUMMARYHTML "<br/>$filecontent<br/>"; # copy the content of the index.html file into the build_summary.html file.
       
   607 
       
   608 close (RAPTORSUMINDEX);
       
   609 }
       
   610 
       
   611 # Copy html files for raptor summarise to bishare
       
   612 # options used for xcopy
       
   613 # /E -> Copies directories and subdirectories, including empty ones.
       
   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.
       
   616 my $copy_html = "xcopy $logdir\\html \\\\bishare\\sf_builds\\$project\\builds\\$codeline\\$buildid\\html \/E \/F \/I";
       
   617 print "Exec: $copy_html\n";
       
   618 system($copy_html);
       
   619 
   586 
   620 
   587 # Indicates end of the SUMMARISE section in the file
   621 # Indicates end of the SUMMARISE section in the file
   588 print BUILDSUMMARYHTML "<br/>#********** SUMMARISE ends here **********#<br/><br/>";
   622 print BUILDSUMMARYHTML "<br/>#********** SUMMARISE ends here **********#<br/><br/>";
   589 
   623 
   590 close(BUILDSUMMARYHTML); # Close build_summary.html
   624 close(BUILDSUMMARYHTML); # Close build_summary.html
   591 
       
   592 
   625 
   593 # End - Build info - Describe the completion of the diffrent steps in the build process
   626 # End - Build info - Describe the completion of the diffrent steps in the build process
   594 
   627 
   595 
   628 
   596 # *****************************************************************************
   629 # *****************************************************************************