|
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 #IMPLIED> |
|
14 <!ATTLIST SetEnv Name CDATA #REQUIRED> |
|
15 <!ATTLIST SetEnv Value CDATA #REQUIRED> |
|
16 ]> |
|
17 <Product Name="Build Launch"> |
|
18 <Commands> |
|
19 <!--Set Env--> |
|
20 <!--SnapshotNumber, PreviousSnapshotNumber and ChangelistNumber need to be Completed--> |
|
21 <SetEnv Name="SnapshotNumber" Value="<TMPL_VAR NAME=tmpl_snapshot>"/> <!--Changeme is MCL Snapshot Number--> |
|
22 <SetEnv Name="PreviousSnapshotNumber" Value="<TMPL_VAR NAME=tmpl_snapshot_previous>"/> <!--Changeme is Previous MCL Snapshot Number--> |
|
23 <SetEnv Name="CDBCompareSnapshotNumber" Value="%PreviousSnapshotNumber%"/> <!--Snapshot Number for CDB Comparison--> |
|
24 <SetEnv Name="ChangelistNumber" Value="<TMPL_VAR NAME=tmpl_changelist>"/> <!--Changeme is Perforce CL Number--> |
|
25 <SetEnv Name="CurrentCodeline" Value="<TMPL_VAR NAME=tmpl_codeline>"/> <!--Changeme if build from delivery branch--> |
|
26 <SetEnv Name="Platform" Value="<TMPL_VAR NAME=tmpl_platform>"/> <!--Changeme is platform name beech/cedar--> |
|
27 <SetEnv Name="Product" Value="<TMPL_VAR NAME=tmpl_build_short_name>"/> <!--Changeme is product name 8.1a, 8.1b, 9.0, 9.1--> |
|
28 |
|
29 <SetEnv Name="BuildSubType" Value="<TMPL_VAR NAME=tmpl_build_sub_type>"/> |
|
30 |
|
31 <!-- Build Publishing and Disk Space--> |
|
32 <SetEnv Name="PublishLocation" Value="<TMPL_VAR NAME=tmpl_publish_location>"/> <!--Changeme if Test Build--> |
|
33 <SetEnv Name="PublishDiskSpaceMin" Value="20"/> <!--Disk space required - Gigabytes--> |
|
34 <SetEnv Name="BuildExpiryDays" Value="14"/> <!--Applies to files at %PublishLocation%--> |
|
35 <SetEnv Name="LocalDiskSpaceMin" Value="90"/> <!--Disk space required - Gigabytes--> |
|
36 |
|
37 <!-- BC Comparitor Variable--> |
|
38 <SetEnv Name="BCToolsBaseBuildNo" Value="<TMPL_VAR NAME=tmpl_snapshot_external>"/> <!--Changeme for regular and Test Builds, is Recent external build Number--> |
|
39 |
|
40 <SetEnv Name="BCCurrentCodeline" Value="%CurrentCodeline%"/> |
|
41 <SetEnv Name="BuildShortName" Value="%Product%"/> |
|
42 <SetEnv Name="BuildBaseName" Value="Symbian_OS_v%BuildShortName%"/> |
|
43 <SetEnv Name="BuildNumber" Value="%SnapshotNumber%_%BuildBaseName%"/> |
|
44 <SetEnv Name="PreviousBuildNumber" Value="%PreviousSnapshotNumber%_%BuildBaseName%"/> |
|
45 <SetEnv Name="CDBPreviousBuildNumber" Value="%CDBCompareSnapshotNumber%_%BuildBaseName%"/> |
|
46 <SetEnv Name="BaseBuildNumber" Value="%BCToolsBaseBuildNo%_%BuildBaseName%"/> |
|
47 <SetEnv Name="Type" Value="<TMPL_VAR NAME=tmpl_type>"/> |
|
48 |
|
49 <SetEnv Name="BuildsDirect" Value="<TMPL_VAR NAME=tmpl_dir>"/> |
|
50 |
|
51 <SetEnv Name="BuildDir" Value="M:"/> |
|
52 <SetEnv Name="TypeDir" Value="%BuildsDirect%\%Type%"/> |
|
53 <SetEnv Name="SubstDir" Value="%BuildsDirect%\%BuildNumber%"/> |
|
54 <SetEnv Name="CleanSourceDir" Value="%BuildDir%\clean-src"/> |
|
55 <SetEnv Name="SourceDir" Value="%BuildDir%\sf"/> |
|
56 <SetEnv Name="OutputDir" Value="%BuildDir%\bin\%Platform%"/> |
|
57 <SetEnv Name="ToolsDir" Value="%BuildsDirect%\maintools"/> |
|
58 <SetEnv Name="LogsDir" Value="%BuildDir%\logs\%Platform%"/> |
|
59 <SetEnv Name="BootstrapDir" Value="%BuildDir%\tools"/> |
|
60 |
|
61 <SetEnv Name="EPOCROOT" Value="\"/> |
|
62 <SetEnv Name="ZipDir" Value="%BuildDir%\zips"/> |
|
63 <SetEnv Name="PATH" Value="%EPOCROOT%epoc32\gcc\bin;%EPOCROOT%epoc32\tools;C:\Apps\GnuPG;%PATH%"/> |
|
64 <SetEnv Name="ProductPath" Value="%BuildDir%\Product\%Platform%"/> |
|
65 <SetEnv Name="DeltaCache" Value="%BuildsDirect%\%Type%\src-%Platform%"/> |
|
66 <SetEnv Name="BootstrapDeltaCache" Value="%BuildsDirect%\%Type%\src-bootstrap"/> |
|
67 <SetEnv Name="PreviousBuildPublishLocation" Value="\\Builds01\devbuilds"/> <!--for test build CDB comparisons--> |
|
68 <SetEnv Name="SmokeTestServerPool" Value="LON-SYSBUILD04#LON-SYSBUILD05#LON-ENGBLDDVD01#LON-PDTEST01"/> |
|
69 <SetEnv Name="CdbZipLocation" Value="%CleanSourceDir%\os\buildtools\toolsandutils\cdb\distribution"/> |
|
70 <SetEnv Name="ABLDCACHE" Value="%BuildDir%\abldcache"/> |
|
71 <SetEnv Name="AutoBFCServerPool" Value="LON-ENGBUILD20#LON-ENGBUILD21#LON-ENGBUILD22"/> |
|
72 |
|
73 <!-- START PHASE PREBUILD --> |
|
74 <Execute Component="Start Phase PREBUILD" Cwd="%ToolsDir%\bin" CommandLine="perl %ToolsDir%\os\buildtools\bldsystemtools\commonbldutils\start-perl.pl -- notifyBuildPhase.pl -s %SnapshotNumber% -p %BuildShortName% -n PREBUILD -t START"/> |
|
75 |
|
76 |
|
77 <!--Start Performance Monitoring --> |
|
78 <Execute Component="Starting PerfMon" Cwd="%ToolsDir%\os\buildtools\bldsystemtools\commonbldutils\PerfMon" CommandLine="perl PerfMonControl.pl -p 1973 -f %LogsDir%\PerfMon_%BuildNumber%.csv -c PerfMon.cfg"/> |
|
79 |
|
80 |
|
81 <!--Stop Anti-Virus Services--> |
|
82 <Execute Component="Stop Anti-Virus Services" Cwd="%ToolsDir%\os\buildtools\bldsystemtools\commonbldutils" CommandLine="Perl AntiVirus.pl -c STOP" ExitOnScanlogError="y"/> |
|
83 |
|
84 <!--LogsDir already created by startbuild/TBAS--> |
|
85 <Execute Component="Subst Build Dir" Cwd="%ToolsDir%\os\buildtools\bldsystemtools\commonbldutils" CommandLine="subst.pl -v %BuildDir% -p %SubstDir% -f"/> |
|
86 <Execute Component="Make Bin Dir" Cwd="%BuildDir%" CommandLine="mkdir %OutputDir%"/> |
|
87 <Execute Component="Make Publish Logs Dir" Cwd="%BuildDir%" CommandLine="mkdir %PublishLocation%\%Type%\%BuildNumber%\logs"/> |
|
88 |
|
89 <!--Time Stamp the build--> |
|
90 <Execute Component="Time Stamp Build" Cwd="%ToolsDir%\os\buildtools\bldsystemtools\commonbldutils" CommandLine="perl BuildStamp.pl -b %BuildNumber% -d %BuildExpiryDays% -p %PublishLocation%\%Type%"/> |
|
91 |
|
92 <!-- Generate and Copy PC and Perforce Table over into the Publish Logs Location --> |
|
93 <Execute Component="Generate PC and P4 Table" Cwd="%ToolsDir%\os\buildtools\bldsystemtools\commonbldutils" CommandLine="perl PC_P4Table.pl" ExitOnScanlogError="y"/> |
|
94 <Execute Component="Copy PC and P4 Table to Local Logs Dir" Cwd="%ToolsDir%\os\buildtools\bldsystemtools\commonbldutils" CommandLine="copy %SnapshotNumber%_%Product%PC_Perforce_report.html %LogsDir%\%SnapshotNumber%_%Product%PC_Perforce_report.html" /> |
|
95 <Execute Component="Publish PC and P4 Table to builds01 Logs Dir" Cwd="%LogsDir%" CommandLine="copy %SnapshotNumber%_%Product%PC_Perforce_report.html %PublishLocation%\%Type%\%BuildNumber%\logs\%SnapshotNumber%_%Product%PC_Perforce_report.html" /> |
|
96 |
|
97 <!--Check space and remove old local builds if necessary--> |
|
98 <Execute Component="Remove Old Local Builds" Cwd="%BuildDir%" CommandLine="perl %ToolsDir%\os\buildtools\bldsystemtools\commonbldutils\remove_old_builds.pl %BuildNumber% %BuildsDirect% %LocalDiskSpaceMin%000000000"/> |
|
99 |
|
100 <!--PrebuildChecks--> |
|
101 <Execute Component="PreBuildChecks" Cwd="%BuildDir%" CommandLine="perl %ToolsDir%\os\buildtools\bldsystemtools\commonbldutils\PreBldChecks.pl -l %LogsDir%\prebuild.log -e I_EXT_SysBuildSupport@nokia.com" ExitOnScanlogError="y"/> |
|
102 |
|
103 <!-- START PHASE SYNC --> |
|
104 <Execute Component="Start Phase SYNC" Cwd="%ToolsDir%\bin" CommandLine="perl %ToolsDir%\os\buildtools\bldsystemtools\commonbldutils\start-perl.pl -- notifyBuildPhase.pl -s %SnapshotNumber% -p %BuildShortName% -n SYNC -t START"/> |
|
105 |
|
106 <!--Get Source--> |
|
107 <Execute Component="Perforce Sync" Cwd="%ToolsDir%\os\buildtools\bldsystemtools\commonbldutils\perforce" CommandLine="perl syncsource.pl -t %BuildSubType%" ExitOnScanlogError="y"/> |
|
108 |
|
109 <!-- STOP PHASE SYNC --> |
|
110 <Execute Component="Stop Phase SYNC" Cwd="%ToolsDir%\bin" CommandLine="perl %ToolsDir%\os\buildtools\bldsystemtools\commonbldutils\start-perl.pl -- notifyBuildPhase.pl -s %SnapshotNumber% -p %BuildShortName% -n SYNC -t STOP"/> |
|
111 |
|
112 <!--Record Delivery to the delivery database for this build --> |
|
113 <Execute Component="Record Delivery" Cwd="%CleanSourceDir%\os\buildtools\bldsystemtools\commonbldutils" CommandLine="perl record_delivery.pl -t \\builds01\devbuilds\BuildTeam\record_delivery\SymbianKK.tmpl -t \\builds01\devbuilds\BuildTeam\record_delivery\SymbianIndia.tmpl -t \\builds01\devbuilds\BuildTeam\record_delivery\SymbianChina.tmpl -t \\builds01\devbuilds\BuildTeam\record_delivery\NokiaFinland.tmpl -c \\builds01\devbuilds\BuildTeam\record_delivery\email.cfg -e BuildNumber=%BuildNumber% -e PublishLocation=%PublishLocation% -e COMPUTERNAME=%COMPUTERNAME%"/> |
|
114 |
|
115 </Commands> |
|
116 </Product> |
|
117 |