1 <?xml version="1.0"?> |
|
2 <!DOCTYPE Build [ |
|
3 <!ELEMENT Product (Commands)> |
|
4 <!ATTLIST Product name CDATA #REQUIRED> |
|
5 <!ELEMENT Commands (Execute+ | SetEnv*)> |
|
6 <!ELEMENT Execute EMPTY> |
|
7 <!ATTLIST Execute ID CDATA #REQUIRED> |
|
8 <!ATTLIST Execute Stage CDATA #REQUIRED> |
|
9 <!ATTLIST Execute Component CDATA #REQUIRED> |
|
10 <!ATTLIST Execute Cwd CDATA #REQUIRED> |
|
11 <!ATTLIST Execute CommandLine CDATA #REQUIRED> |
|
12 <!ELEMENT SetEnv EMPTY> |
|
13 <!ATTLIST SetEnv Order ID #REQUIRED> |
|
14 <!ATTLIST SetEnv Name CDATA #REQUIRED> |
|
15 <!ATTLIST SetEnv Value CDATA #REQUIRED> |
|
16 ]> |
|
17 <Product Name="MCL Build"> |
|
18 <Commands> |
|
19 |
|
20 <!-- START PHASE POSTBUILD --> |
|
21 <Execute ID="1" Stage="1" Component="Start Phase POSTBUILD" Cwd="%ToolsDir%\bin" CommandLine="perl %CleanSourceDir%\os\buildtools\bldsystemtools\commonbldutils\start-perl.pl -- notifyBuildPhase.pl -s %SnapshotNumber% -p %BuildShortName% -n POSTBUILD -t START"/> |
|
22 <Execute Component="Publish Postbuild Start to Diamonds" Cwd="%LogsDir%" CommandLine="perl %SourceDir%\os\buildtools\bldsystemtools\commonbldutils\GenResult\GenDiamondsXml.pl -t BUILD -i START -s %DiamondsServer%"/> |
|
23 |
|
24 <!-- To be used in conjunction with a MCL build environment --> |
|
25 <!-- Extract information from Windows Event Logs for the duration of the current build. Publish --> |
|
26 <Execute ID="2" Stage="2" Component="EventLogReader WinEvents" Cwd="%LogsDir%" CommandLine="perl %SourceDir%\os\buildtools\bldsystemtools\commonbldutils\EventLogReader.pl -l %BuildNumber%.log -k %BuildBaseName%.log -o %BuildNumber%_WinEvents.log"/> |
|
27 <Execute ID="3" Stage="3" Component="HTMLScanlog Results" Cwd="%LogsDir%" CommandLine="perl %SourceDir%\os\buildtools\bldsystemtools\buildsystemtools\scanlog\htmlscanlog.pl -t %BuildNumber%.log -v -v -l %BuildNumber%.log -l %BuildBaseName%.log -l %BuildNumber%_WinEvents.log -o %BuildNumber%.summary.html -c %PublishLocation%\%Type%\logs\%Type%.csv -m %PublishLocation%\%Type%\logs\machineclass.csv"/> |
|
28 |
|
29 <!--Publish components files --> |
|
30 <Execute ID="4" Stage="4" Component="Publish GTcomponents.txt" Cwd="%BuildDir%" CommandLine="copy \sf\os\deviceplatformrelease\symbianosbld\productionbldcbrconfig\%Product%\GTcomponents.txt %PublishLocation%\%Type%\%BuildNumber%\logs\GTcomponents.txt"/> |
|
31 <Execute ID="5" Stage="5" Component="Publish GTcomponents.txt" Cwd="%BuildDir%" CommandLine="copy \sf\os\deviceplatformrelease\symbianosbld\productionbldcbrconfig\%Product%\GTcomponents.txt %PublishLocation%\%Type%\logs\%BuildNumber%\GTcomponents.txt"/> |
|
32 <Execute ID="6" Stage="6" Component="Publish TVcomponents.txt" Cwd="%BuildDir%" CommandLine="copy \sf\os\deviceplatformrelease\symbianosbld\productionbldcbrconfig\%Product%\TechViewComponents.txt %PublishLocation%\%Type%\%BuildNumber%\logs\TechViewComponents.txt"/> |
|
33 <Execute ID="7" Stage="7" Component="Publish TVcomponents.txt" Cwd="%BuildDir%" CommandLine="copy \sf\os\deviceplatformrelease\symbianosbld\productionbldcbrconfig\%Product%\TechViewComponents.txt %PublishLocation%\%Type%\logs\%BuildNumber%\TechViewComponents.txt"/> |
|
34 |
|
35 <!-- Publish all the results --> |
|
36 <Execute ID="8" Stage="8" Component="Publish Log" Cwd="%LogsDir%" CommandLine="copy %BuildNumber%.summary.html %PublishLocation%\%Type%\%BuildNumber%\logs\"/> |
|
37 <Execute ID="9" Stage="9" Component="Publish Log" Cwd="%LogsDir%" CommandLine="copy %BuildNumber%.summary.html %PublishLocation%\%Type%\logs\%BuildNumber%\"/> |
|
38 <Execute ID="10" Stage="10" Component="Publish Log" Cwd="%LogsDir%" CommandLine="copy %BuildNumber%.log %PublishLocation%\%Type%\%BuildNumber%\logs\"/> |
|
39 <Execute ID="11" Stage="11" Component="Publish Log" Cwd="%LogsDir%" CommandLine="copy %BuildNumber%.log %PublishLocation%\%Type%\logs\%BuildNumber%\"/> |
|
40 <Execute ID="12" Stage="12" Component="Publish Log" Cwd="%LogsDir%" CommandLine="copy prebuild.log %PublishLocation%\%Type%\%BuildNumber%\logs\"/> |
|
41 <Execute ID="13" Stage="13" Component="Publish Log" Cwd="%LogsDir%" CommandLine="copy prebuild.log %PublishLocation%\%Type%\logs\%BuildNumber%\"/> |
|
42 <Execute ID="14" Stage="14" Component="Publish WinEvent Log" Cwd="%LogsDir%" CommandLine="copy %BuildNumber%_WinEvents.log %PublishLocation%\%Type%\%BuildNumber%\logs\"/> |
|
43 <Execute ID="15" Stage="15" Component="Publish WinEvent Log" Cwd="%LogsDir%" CommandLine="copy %BuildNumber%_WinEvents.log %PublishLocation%\%Type%\logs\%BuildNumber%\"/> |
|
44 <Execute ID="16" Stage="16" Component="Publish Log" Cwd="%LogsDir%" CommandLine="copy BuildLaunch.xml %PublishLocation%\%Type%\%BuildNumber%\logs\"/> |
|
45 <Execute ID="17" Stage="17" Component="Publish Log" Cwd="%LogsDir%" CommandLine="copy %BuildBaseName%.log %PublishLocation%\%Type%\%BuildNumber%\logs\"/> |
|
46 <Execute ID="18" Stage="18" Component="Publish Build Env XML" Cwd="%LogsDir%" CommandLine="copy lon-eng*.xml %PublishLocation%\%Type%\%BuildNumber%\logs\"/> |
|
47 |
|
48 <Execute ID="19" Stage="19" Component="Publish imreport log" Cwd="%BuildDir%" CommandLine="xcopy %LogsDir%\imreport.log %PublishLocation%\%Type%\%BuildNumber%\logs /z/e/i/q"/> |
|
49 <Execute ID="20" Stage="20" Component="Publish imreport log" Cwd="%BuildDir%" CommandLine="xcopy %LogsDir%\imreport.log %PublishLocation%\%Type%\logs\%BuildNumber% /z/e/i/q"/> |
|
50 <Execute ID="21" Stage="21" Component="Publish imreport xml to logs directory" Cwd="%LogsDir%" CommandLine="xcopy %LogsDir%\imrep_%BuildNumber%.xml %PublishLocation%\%Type%\logs\%BuildNumber% /z/e/i/q"/> |
|
51 |
|
52 <Execute ID="22" Stage="22" Component="Publish CDB" Cwd="%BuildDir%" CommandLine="xcopy %BuildDir%\cdb-info\cdb.db.* %PublishLocation%\%Type%\%BuildNumber%\cdb-info /z/e/i/q"/> |
|
53 |
|
54 <Execute ID="23" Stage="23" Component="Publish BC Previous Results" Cwd="%BuildDir%" CommandLine="xcopy %BuildDir%\cdb-info\*-prev.* %PublishLocation%\%Type%\%BuildNumber%\cdb-info /z/e/i/q"/> |
|
55 <Execute ID="24" Stage="24" Component="Publish BC Previous Results to archive" Cwd="%BuildDir%" CommandLine="xcopy %BuildDir%\cdb-info\*-prev.* %PublishLocation%\%Type%\logs\%BuildNumber%\cdb-info /z/e/i/q"/> |
|
56 |
|
57 <Execute ID="25" Stage="25" Component="Publish BC Baseline Results" Cwd="%BuildDir%" CommandLine="xcopy %BuildDir%\cdb-info\*-base.* %PublishLocation%\%Type%\%BuildNumber%\cdb-info /z/e/i/q"/> |
|
58 <Execute ID="26" Stage="26" Component="Publish BC Baseline Results" Cwd="%BuildDir%" CommandLine="xcopy %BuildDir%\cdb-info\*-base.* %PublishLocation%\%Type%\logs\%BuildNumber%\cdb-info /z/e/i/q"/> |
|
59 |
|
60 <!-- Create and Publish Changes Report --> |
|
61 <Execute ID="27" Stage="27" Component="Generate Changes Report" Cwd="%LogsDir%" CommandLine="perl %CleanSourceDir%\os\buildtools\bldsystemtools\commonbldutils\GenerateChangesReport.pl %Product% %Platform% %SnapshotNumber% %ChangelistNumber% %BuildNumber% %CurrentCodeline% %BCToolsBaseBuildNo% %PublishLocation%\%Type% %CleanSourceDir%"/> |
|
62 <Execute ID="28" Stage="28" Component="Publish Changes Report" Cwd="%LogsDir%" CommandLine="copy Symbian_OS_v%Product%_Changes_Report.html %PublishLocation%\%Type%\logs\%BuildNumber%\Symbian_OS_v%Product%_Changes_Report.html"/> |
|
63 <Execute ID="29" Stage="29" Component="Publish Changes Report" Cwd="%LogsDir%" CommandLine="copy Symbian_OS_v%Product%_Changes_Report.html %PublishLocation%\%Type%\%BuildNumber%\logs\Symbian_OS_v%Product%_Changes_Report.html"/> |
|
64 |
|
65 <!-- Create and Publish Antivirus Log(s) --> |
|
66 <Execute ID="30" Stage="30" Component="Run Anti Virus Scan" Cwd="%SourceDir%\os\buildtools\bldsystemtools\commonbldutils" CommandLine="Perl AntiVirus.pl -c SCAN -o %LogsDir% -d %BuildDir%\CBRGT -d %BuildDir%\CBRTV"/> |
|
67 <Execute ID="31" Stage="31" Component="Publish Anti Virus Log" Cwd="%LogsDir%" CommandLine="copy %LogsDir%\anti-virus.log %PublishLocation%\%Type%\%BuildNumber%\logs\anti-virus.log"/> |
|
68 <Execute ID="32" Stage="32" Component="Publish Anti Virus Log" Cwd="%LogsDir%" CommandLine="copy %LogsDir%\anti-virus.log %PublishLocation%\%Type%\logs\%BuildNumber%\anti-virus.log"/> |
|
69 |
|
70 <!-- Generate build results table --> |
|
71 <Execute ID="33" Stage="33" Component="Create ESR Build Report" Cwd="%LogsDir%" CommandLine="perl %SourceDir%\os\buildtools\bldsystemtools\commonbldutils\GenResult\GenResult.pl -t BUILD -b FINAL -d %PublishLocation%\%Type%\%BuildNumber%\logs\ -s %SnapshotNumber% -p %Product% -l %PublishLocation%\%Type%\logs\%BuildNumber%\ -m"/> |
|
72 <Execute ID="34" Stage="34" Component="Publish ESR Build Report" Cwd="%LogsDir%" CommandLine="copy /Y %SnapshotNumber%_%Product%_report.html %PublishLocation%\%Type%\%BuildNumber%\logs\"/> |
|
73 <Execute ID="35" Stage="35" Component="Publish ESR Build Report" Cwd="%LogsDir%" CommandLine="copy /Y %SnapshotNumber%_%Product%_report.html %PublishLocation%\%Type%\logs\%BuildNumber%\"/> |
|
74 |
|
75 <!-- Post-build removal of old local builds to speed up build launch process --> |
|
76 <Execute ID="36" Stage="36" Component="Post-build Removal Of Old Local Builds" Cwd="%BuildDir%" CommandLine="perl %SourceDir%\os\buildtools\bldsystemtools\commonbldutils\remove_old_builds.pl %BuildNumber% %BuildsDirect% %LocalDiskSpaceMin%000000000" /> |
|
77 |
|
78 <!-- STOP PHASE POSTBUILD --> |
|
79 <Execute ID="37" Stage="37" Component="Stop Phase POSTBUILD" Cwd="%ToolsDir%\bin" CommandLine="perl %CleanSourceDir%\os\buildtools\bldsystemtools\commonbldutils\start-perl.pl -- notifyBuildPhase.pl -s %SnapshotNumber% -p %BuildShortName% -n POSTBUILD -t STOP"/> |
|
80 <Execute ID="38" Stage="38" Component="Publish Postbuild End to Diamonds" Cwd="%LogsDir%" CommandLine="perl %SourceDir%\os\buildtools\bldsystemtools\commonbldutils\GenResult\GenDiamondsXml.pl -t BUILD -i STOP -s %DiamondsServer%"/> |
|
81 <Execute ID="39" Stage="39" Component="Publish Build End to Diamonds" Cwd="%LogsDir%" CommandLine="perl %SourceDir%\os\buildtools\bldsystemtools\commonbldutils\GenResult\GenDiamondsXml.pl -t ENDBUILD -i START -s %DiamondsServer%"/> |
|
82 |
|
83 <Execute ID="40" Stage="40" Component="Publish Diaomnds XML zip" Cwd="%LogsDir%" CommandLine="copy DiamondsXmls.zip %PublishLocation%\%Type%\%BuildNumber%\logs\"/> |
|
84 <Execute ID="41" Stage="41" Component="Publish Diaomnds XML zip" Cwd="%LogsDir%" CommandLine="copy DiamondsXmls.zip %PublishLocation%\%Type%\logs\%BuildNumber%\"/> |
|
85 |
|
86 <Execute ID="42" Stage="42" Component="Publish postbuild Log" Cwd="%LogsDir%" CommandLine="copy postbuild.log %PublishLocation%\%Type%\%BuildNumber%\logs\"/> |
|
87 <Execute ID="43" Stage="43" Component="Publish postbuild Log" Cwd="%LogsDir%" CommandLine="copy postbuild.log %PublishLocation%\%Type%\logs\%BuildNumber%\"/> |
|
88 |
|
89 <!-- Restart Anti-Virus and Anti-Spyware Services --> |
|
90 <Execute ID="44" Stage="44" Component="Re-start Anti-Virus Services" Cwd="%SourceDir%\os\buildtools\bldsystemtools\commonbldutils" CommandLine="Perl AntiVirus.pl -c START"/> |
|
91 |
|
92 <!-- Restart Anti-Virus and Anti-Spyware must be the 2nd-to-last step! --> |
|
93 |
|
94 <Execute ID="45" Stage="45" Component="Publish imreport xml" Cwd="%LogsDir%" CommandLine="xcopy %LogsDir%\imrep_%BuildNumber%.xml %PublishLocation%\%Type%\%BuildNumber%\logs /z/e/i/q"/> |
|
95 |
|
96 <!-- Report missing stages in Main/Post Build logs --> |
|
97 <Execute ID="46" Stage="46" Component="Missing Stages" Cwd="%LogsDir%" CommandLine="perl %SourceDir%\os\buildtools\bldsystemtools\commonbldutils\missingstages.pl"/> |
|
98 |
|
99 <!-- Report missing stages must be the last step! --> |
|
100 |
|
101 |
|
102 </Commands> |
|
103 </Product> |
|