Add call to sf-summary target
authorDario Sestito <darios@symbian.org>
Wed, 19 Aug 2009 11:55:21 +0100
changeset 46 4db5e28df888
parent 44 1caba2ed8b35
child 47 4379a1e558cd
Add call to sf-summary target
build_package.pl
--- a/build_package.pl	Mon Aug 10 18:45:35 2009 +0100
+++ b/build_package.pl	Wed Aug 19 11:55:21 2009 +0100
@@ -266,6 +266,19 @@
 close(PIPE);
 close(LOG);
 
+print "###### GENERATE BUILD SUMMARY ######\n";
+my $sSummaryCmd = "hlm sf-summary -Dsf.project.type=package $sSubProjArg -Dsf.spec.job.number=$nJobNumber -Dsf.spec.job.drive=$sDriveLetter: $sTestBuildOpt $sNoPublishOpt $sJobRootDirArg";
+print("$sSummaryCmd\n");
+open(LOG, ">console_sfsummary_$$.txt");
+open(PIPE, "$sSummaryCmd 2>&1 |");
+while(<PIPE>)
+{
+	print LOG $_;
+	print $_;
+}
+close(PIPE);
+close(LOG);
+
 # copy console outputs to remote log archive
 if (-d "$sREMOTE_LOG_ARCHIVE\\$sPackage\\builds\\$sPlatform\\$sPackage\_$sPlatform.$nJobNumber\\logs")
 {
@@ -276,6 +289,7 @@
 	system("del $sBOOTSTRAP_DIR\\console_bootstrap_$$.txt");
 	system("copy $sJobDir\\sf-config\\console_sfprep_$$.txt $sTgtDir");
 	system("copy $sJobDir\\sf-config\\console_sfbuildall_$$.txt $sTgtDir");
+	system("copy $sJobDir\\sf-config\\console_sfsummary_$$.txt $sTgtDir");
 }
 else
 {