if (!$__SPGENVPM ) { use spg::env; } if (!$__IITBUILDPM ) { use iit::build; } if (!$__IITBUILDCOMPONENTVCPM ) { use iit::buildcomponentvc; } sub BeginBuildCustom { my($rc) = 1; if (IsMemberOf("BBT", @lArgs)) { if (!IsMemberOf("ICECAP", @lArgs) && IsMemberOf("ICECAP", @lAllowedBuilds)) { push(@lArgs, "ICECAP"); } } return($rc); } sub EndBuildCustom { my($tmpStrBuildMsg) = $strBuildMsg; $strBuildMsg = ""; my($nGoodBuilds) = $nTotalBuilds - $nFailedBuilds; my($nGoodMSIs) = $nTotalMSIs - $nFailedMSIs; my($nPercentBuildPass) = (($nTotalBuilds == 0) ? 0 : $nGoodBuilds * 100 / $nTotalBuilds); $nPercentBuildPass =~ s/(\.\d).*/$1/; my($nPercentMSIPass) = (($nTotalMSIs == 0) ? 0 : $nGoodMSIs * 100 / $nTotalMSIs); $nPercentMSIPass =~ s/(\.\d).*/$1/; my($sBVTCompKills) = ""; if (@lBVTCompKills != ()) { $sBVTCompKills = "\n* BVT".((@lBVTCompKills == 1) ? "" : "s")." ".join(", ", @lBVTCompKills)." failed to " ."terminate, results above are based on BVTs that completed\n\n"; } my($sBVTCompBFails) = ""; if (@lBVTCompBFails != ()) { $sBVTCompBFails = "\n* BVT".((@lBVTCompBFails == 1) ? "" : "s")." ".join(", ", @lBVTCompBFails).".dll failed to " ."build, results above are based on BVT components that built successfully\n\n"; } PrintL("\n\n" ."" ."" ."" ."" ."" ."" ."" ."" ."" ."
Build Success 80) ? "yellow" : "red")) .">", PL_MSG | PL_NOSTD); PrintLTip("".$nPercentBuildPass."%", $nGoodBuilds." of ".$nTotalBuilds, PL_MSG | PL_NOSTD | PL_MSGCONCAT); PrintL("
MSI Build Success 60) ? "yellow" : "red")) .">", PL_MSG | PL_NOSTD | PL_MSGCONCAT); PrintLTip("".$nPercentMSIPass."%", $nGoodMSIs." of ".$nTotalMSIs, PL_MSG | PL_NOSTD | PL_MSGCONCAT); PrintL("
BVT Success 50) ? "yellow" : "red")) .">", PL_MSG | PL_NOSTD | PL_MSGCONCAT); PrintL("".$g_nBVTPassedPercent."%"."", PL_MSG | PL_NOSTD | PL_MSGCONCAT); PrintL("
\n
", PL_MSG | PL_NOSTD | PL_MSGCONCAT); if ($sBVTCompKills) { PrintL("
".$sBVTCompKills, PL_MSG | PL_NOSTD | PL_RED | PL_BOLD); } if ($sBVTCompBFails) { PrintL("
".$sBVTCompBFails."

", PL_MSG | PL_NOSTD | PL_RED | PL_BOLD); } $strBuildMsg .= $tmpStrBuildMsg; # official build only fails if msi build fails if ($bOfficialBuild && ($bcStatus & BC_FAILED)) { $bcStatus -= BC_FAILED; $bBuildFailed = 0; } elsif ($bNothingDone) { $bcStatus |= BC_NOTHINGDONE; } if ($bBVTFailed) { $bcStatus |= BC_BVTFAILED; } if ($bCopyFailed) { $bcStatus |= BC_COPYFAILED; } if ($bcStatus & BC_CABFAILED) { $bcStatus |= BC_FAILED; $bBuildFailed = 1; } } $__SPGBUILDPM = 1; 1;