# HG changeset patch # User Dario Sestito # Date 1250679321 -3600 # Node ID 4db5e28df88822b4e4cd7e8d8bf29e67116860d0 # Parent 1caba2ed8b35a5f008ac5ccf9cdad8ca482b3ca5 Add call to sf-summary target diff -r 1caba2ed8b35 -r 4db5e28df888 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() +{ + 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 {