doc/api/helium/target-sf-postbuild.html
changeset 627 56a1d97e7c73
parent 432 f2ddfa555b0f
equal deleted inserted replaced
607:3c858aa7a023 627:56a1d97e7c73
    80 
    80 
    81     
    81     
    82 <h2>Target sf-postbuild</h2>
    82 <h2>Target sf-postbuild</h2>
    83 
    83 
    84 <p><b>Location</b></p>
    84 <p><b>Location</b></p>
    85 <p>    <tt class="docutils literal"><a href="/D:/maintools/sf-config/common/build.postbuild.xml#L3">D:\maintools\sf-config\common\build.postbuild.xml:3:</a></tt>  
    85 <p>    <tt class="docutils literal"><a href="/d:/maintools/sf-config/common/build.postbuild.xml#L3">d:\maintools\sf-config\common\build.postbuild.xml:3:</a></tt>  
    86 </p>
    86 </p>
    87 
    87 
    88 <p><b>Conditional execution</b></p>        
    88 <p><b>Conditional execution</b></p>        
    89 <p>No conditions on target execution.</p>
    89 <p>No conditions on target execution.</p>
    90 <hr/>
    90 <hr/>
   121 <h3>Target dependencies</h3>
   121 <h3>Target dependencies</h3>
   122 <p align="center">
   122 <p align="center">
   123 <img src="target-sf-postbuild.dot.png" alt="sf-postbuild dependencies" usemap="#dependencies"
   123 <img src="target-sf-postbuild.dot.png" alt="sf-postbuild dependencies" usemap="#dependencies"
   124      style="border-style: none"/>
   124      style="border-style: none"/>
   125 <map name="dependencies" id="dependencies">
   125 <map name="dependencies" id="dependencies">
   126 <area shape="rect" id="node1" href="target-sf-postbuild.html" title="sf&#45;postbuild" alt="" coords="197,395,299,443">
   126 <area shape="rect" id="node1" href="target-sf-postbuild.html" title="sf&#45;postbuild" alt="" coords="197,653,299,701">
   127 <area shape="rect" id="node12" href="target-sf-tag-hg-code.html" title="sf&#45;tag&#45;hg&#45;code" alt="" coords="392,56,515,104">
   127 <area shape="rect" id="node12" href="target-sf-tag-hg-code.html" title="sf&#45;tag&#45;hg&#45;code" alt="" coords="396,5,519,53">
   128 <area shape="rect" id="node14" href="target-sf-run-evalid.html" title="sf&#45;run&#45;evalid" alt="" coords="401,128,505,176">
   128 <area shape="rect" id="node14" href="target-sf-run-evalid.html" title="sf&#45;run&#45;evalid" alt="" coords="405,77,509,125">
   129 <area shape="rect" id="node16" href="target-sf-package-binary.html" title="sf&#45;package&#45;binary" alt="" coords="380,200,527,248">
   129 <area shape="rect" id="node16" href="target-sf-package-binary.html" title="sf&#45;package&#45;binary" alt="" coords="384,149,531,197">
   130 <area shape="rect" id="node23" href="target-sf-package-tools.html" title="sf&#45;package&#45;tools" alt="" coords="567,161,703,209">
   130 <area shape="rect" id="node29" href="target-sf-package-tools.html" title="sf&#45;package&#45;tools" alt="" coords="664,211,800,259">
   131 <area shape="rect" id="node26" href="target-sf-package-validate.html" title="sf&#45;package&#45;validate" alt="" coords="375,323,532,371">
   131 <area shape="rect" id="node34" href="target-sf-package-validate.html" title="sf&#45;package&#45;validate" alt="" coords="379,499,536,547">
   132 <area shape="rect" id="node28" href="target-sf-run-analysis.html" title="sf&#45;run&#45;analysis" alt="" coords="393,395,513,443">
   132 <area shape="rect" id="node36" href="target-sf-run-analysis.html" title="sf&#45;run&#45;analysis" alt="" coords="397,571,517,619">
   133 <area shape="rect" id="node50" href="target-sf-build-smoketestpkg.html" title="sf&#45;build&#45;smoketestpkg" alt="" coords="367,467,540,515">
   133 <area shape="rect" id="node74" href="target-sf-compare-to-baseline.html" title="sf&#45;compare&#45;to&#45;baseline" alt="" coords="367,767,548,815">
   134 <area shape="rect" id="node56" href="target-sf-send-testpkg.html" title="sf&#45;send&#45;testpkg" alt="" coords="788,661,916,709">
   134 <area shape="rect" id="node82" href="target-sf-build-smoketestpkg.html" title="sf&#45;build&#45;smoketestpkg" alt="" coords="371,839,544,887">
   135 <area shape="rect" id="node63" href="target-sf-zip-logs.html" title="sf&#45;zip&#45;logs" alt="" coords="408,605,499,653">
   135 <area shape="rect" id="node88" href="target-sf-send-testpkg.html" title="sf&#45;send&#45;testpkg" alt="" coords="668,1003,796,1051">
   136 <area shape="rect" id="node65" href="target-sf-bc-check.html" title="sf&#45;bc&#45;check" alt="" coords="403,677,504,725">
   136 <area shape="rect" id="node97" href="target-sf-bc-check.html" title="sf&#45;bc&#45;check" alt="" coords="407,977,508,1025">
   137 <area shape="rect" id="node71" href="target-sf-publish.html" title="sf&#45;publish" alt="" coords="409,749,497,797">
   137 <area shape="rect" id="node104" href="target-sf-zip-logs.html" title="sf&#45;zip&#45;logs" alt="" coords="412,1049,503,1097">
   138 <area shape="rect" id="node2" href="target-sf-build-all.html" title="sf&#45;build&#45;all" alt="" coords="31,287,121,335">
   138 <area shape="rect" id="node106" href="target-sf-publish.html" title="sf&#45;publish" alt="" coords="413,1121,501,1169">
   139 <area shape="rect" id="node4" href="target-sf-build-and-pack.html" title="sf&#45;build&#45;and&#45;pack" alt="" coords="5,359,147,407">
   139 <area shape="rect" id="node2" href="target-sf-build-all.html" title="sf&#45;build&#45;all" alt="" coords="31,545,121,593">
   140 <area shape="rect" id="node6" href="target-sf-build.html" title="sf&#45;build" alt="" coords="40,431,112,479">
   140 <area shape="rect" id="node4" href="target-sf-build-and-pack.html" title="sf&#45;build&#45;and&#45;pack" alt="" coords="5,617,147,665">
   141 <area shape="rect" id="node8" href="target-sf-build-noprep.html" title="sf&#45;build&#45;noprep" alt="" coords="13,503,139,551">
   141 <area shape="rect" id="node6" href="target-sf-build.html" title="sf&#45;build" alt="" coords="40,689,112,737">
   142 <area shape="rect" id="node18" href="target-sf-preprocess-package-config.html" title="sf&#45;preprocess&#45;package&#45;config" alt="" coords="1043,95,1272,143">
   142 <area shape="rect" id="node8" href="target-sf-build-noprep.html" title="sf&#45;build&#45;noprep" alt="" coords="13,761,139,809">
   143 <area shape="rect" id="node20" href="target-sf-package-postbuild-rnd.html" title="sf&#45;package&#45;postbuild&#45;rnd" alt="" coords="755,95,949,143">
   143 <area shape="rect" id="node18" href="target-sf-preprocess-package-config.html" title="sf&#45;preprocess&#45;package&#45;config" alt="" coords="923,45,1152,93">
   144 <area shape="rect" id="node30" href="target-sf-run-analysis-ant.html" title="sf&#45;run&#45;analysis&#45;ant" alt="" coords="779,217,925,265">
   144 <area shape="rect" id="node20" href="target-sf-package-postbuild-rnd.html" title="sf&#45;package&#45;postbuild&#45;rnd" alt="" coords="635,72,829,120">
   145 <area shape="rect" id="node32" href="target-sf-run-analysis-raptor.html" title="sf&#45;run&#45;analysis&#45;raptor" alt="" coords="769,289,935,337">
   145 <area shape="rect" id="node23" href="target-sf-zip-content.html" title="sf&#45;zip&#45;content" alt="" coords="981,139,1093,187">
   146 <area shape="rect" id="node34" href="target-sf-run-analysis-yarp.html" title="sf&#45;run&#45;analysis&#45;yarp" alt="" coords="775,361,929,409">
   146 <area shape="rect" id="node24" href="target-preprocess-zip-config.html" title="preprocess&#45;zip&#45;config" alt="" coords="1227,139,1397,187">
   147 <area shape="rect" id="node36" href="target-sf-run-analysis-whatlog-summary.html" title="sf&#45;run&#45;analysis&#45;whatlog&#45;summary" alt="" coords="729,433,975,481">
   147 <area shape="rect" id="node38" href="target-sf-run-analysis-ant.html" title="sf&#45;run&#45;analysis&#45;ant" alt="" coords="659,283,805,331">
   148 <area shape="rect" id="node48" href="target-sf-run-analysis-diamonds.html" title="sf&#45;run&#45;analysis&#45;diamonds" alt="" coords="755,505,949,553">
   148 <area shape="rect" id="node40" href="target-sf-run-analysis-raptor.html" title="sf&#45;run&#45;analysis&#45;raptor" alt="" coords="649,355,815,403">
   149 <area shape="rect" id="node38" href="target-sf-run-analysis-list.html" title="sf&#45;run&#45;analysis&#45;list" alt="" coords="1085,225,1229,273">
   149 <area shape="rect" id="node42" href="target-sf-run-analysis-yarp.html" title="sf&#45;run&#45;analysis&#45;yarp" alt="" coords="655,427,809,475">
   150 <area shape="rect" id="node40" href="target-sf-run-analysis-whatlog.html" title="sf&#45;run&#45;analysis&#45;whatlog" alt="" coords="1068,297,1247,345">
   150 <area shape="rect" id="node44" href="target-sf-run-analysis-whatlog-summary.html" title="sf&#45;run&#45;analysis&#45;whatlog&#45;summary" alt="" coords="609,499,855,547">
   151 <area shape="rect" id="node42" href="target-sf-run-analysis-whatlog-merge.html" title="sf&#45;run&#45;analysis&#45;whatlog&#45;merge" alt="" coords="1044,369,1271,417">
   151 <area shape="rect" id="node56" href="target-sf-run-analysis-missing-files.html" title="sf&#45;run&#45;analysis&#45;missing&#45;files" alt="" coords="627,571,837,619">
   152 <area shape="rect" id="node44" href="target-sf-run-analysis-whatlog-package.html" title="sf&#45;run&#45;analysis&#45;whatlog&#45;package" alt="" coords="1036,441,1279,489">
   152 <area shape="rect" id="node70" href="target-sf-run-analysis-diamonds.html" title="sf&#45;run&#45;analysis&#45;diamonds" alt="" coords="635,643,829,691">
   153 <area shape="rect" id="node46" href="target-sf-run-analysis-whatlog-collisons.html" title="sf&#45;run&#45;analysis&#45;whatlog&#45;collisons" alt="" coords="1036,513,1279,561">
   153 <area shape="rect" id="node72" href="target-sf-brag-to-diamonds.html" title="sf&#45;brag&#45;to&#45;diamonds" alt="" coords="651,715,813,763">
   154 <area shape="rect" id="node51" href="target-sf-getenv-tools.html" title="sf&#45;getenv&#45;tools" alt="" coords="791,581,913,629">
   154 <area shape="rect" id="node46" href="target-sf-run-analysis-list.html" title="sf&#45;run&#45;analysis&#45;list" alt="" coords="965,283,1109,331">
   155 <area shape="rect" id="node53" href="target-preparation-getenv.html" title="preparation&#45;getenv" alt="" coords="1081,585,1233,633">
   155 <area shape="rect" id="node48" href="target-sf-run-analysis-whatlog.html" title="sf&#45;run&#45;analysis&#45;whatlog" alt="" coords="948,355,1127,403">
   156 <area shape="rect" id="node58" href="target-sf-find-ATS-worker-root.html" title="sf&#45;find&#45;ATS&#45;worker&#45;root" alt="" coords="1331,685,1515,733">
   156 <area shape="rect" id="node50" href="target-sf-run-analysis-whatlog-merge.html" title="sf&#45;run&#45;analysis&#45;whatlog&#45;merge" alt="" coords="924,427,1151,475">
   157 <area shape="rect" id="node60" href="target-sf-make-junction.html" title="sf&#45;make&#45;junction" alt="" coords="1091,731,1224,779">
   157 <area shape="rect" id="node52" href="target-sf-run-analysis-whatlog-package.html" title="sf&#45;run&#45;analysis&#45;whatlog&#45;package" alt="" coords="916,499,1159,547">
   158 <area shape="rect" id="node72" href="target-prep-publish.html" title="prep&#45;publish" alt="" coords="799,749,905,797">
   158 <area shape="rect" id="node54" href="target-sf-run-analysis-whatlog-collisons.html" title="sf&#45;run&#45;analysis&#45;whatlog&#45;collisons" alt="" coords="916,571,1159,619">
       
   159 <area shape="rect" id="node58" href="target-sf-check-missing-os-files.html" title="sf&#45;check&#45;missing&#45;os&#45;files" alt="" coords="941,643,1133,691">
       
   160 <area shape="rect" id="node63" href="target-sf-check-missing-s60-files.html" title="sf&#45;check&#45;missing&#45;s60&#45;files" alt="" coords="936,715,1139,763">
       
   161 <area shape="rect" id="node76" href="target-sf-diamondize-bom.html" title="sf&#45;diamondize&#45;bom" alt="" coords="655,787,809,835">
       
   162 <area shape="rect" id="node80" href="target-sf-check-utilities-dir.html" title="sf&#45;check&#45;utilities&#45;dir" alt="" coords="655,859,809,907">
       
   163 <area shape="rect" id="node77" href="target-sf-record-proj-conf-bom.html" title="sf&#45;record&#45;proj&#45;conf&#45;bom" alt="" coords="945,787,1129,835">
       
   164 <area shape="rect" id="node83" href="target-sf-getenv-tools.html" title="sf&#45;getenv&#45;tools" alt="" coords="671,931,793,979">
       
   165 <area shape="rect" id="node85" href="target-preparation-getenv.html" title="preparation&#45;getenv" alt="" coords="961,897,1113,945">
       
   166 <area shape="rect" id="node90" href="target-sf-start-ats.html" title="sf&#45;start&#45;ats" alt="" coords="991,969,1084,1017">
       
   167 <area shape="rect" id="node92" href="target-sf-find-ATS-worker-root.html" title="sf&#45;find&#45;ATS&#45;worker&#45;root" alt="" coords="1220,1061,1404,1109">
       
   168 <area shape="rect" id="node94" href="target-sf-make-junction.html" title="sf&#45;make&#45;junction" alt="" coords="971,1108,1104,1156">
       
   169 <area shape="rect" id="node107" href="target-prep-publish.html" title="prep&#45;publish" alt="" coords="679,1121,785,1169">
   159 </map>
   170 </map>
   160 </p>
   171 </p>
   161 <hr/>
   172 <hr/>
   162 
   173 
   163 
   174 
   164 <h3>Source code</h3>
   175 <h3>Source code</h3>
   165 <pre>
   176 <pre>
   166     &lt;target name=&quot;sf-postbuild&quot;&gt;
   177     &lt;target name=&quot;sf-postbuild&quot;&gt;
   167         &lt;echo&gt;[SF-POSTBUILD]&lt;/echo&gt;
   178         &lt;echo&gt;[SF-POSTBUILD]&lt;/echo&gt;
   168         &lt;parallel&gt;                
   179         &lt;parallel&gt;                
   169         &lt;!-- TAG SOURCE CODE --&gt;
   180             &lt;!-- TAG SOURCE CODE --&gt;
   170         &lt;if&gt;
   181             &lt;if&gt;
   171             &lt;istrue value=&quot;${sf.spec.tagafterbuild.enable}&quot;/&gt;
   182                 &lt;istrue value=&quot;${sf.spec.tagafterbuild.enable}&quot;/&gt;
   172             &lt;then&gt;
   183                 &lt;then&gt;
   173                 &lt;echo message=&quot;Apply tag to the source code used in this build&quot;/&gt;
   184                     &lt;echo message=&quot;Apply tag to the source code used in this build&quot;/&gt;
   174                 &lt;runtarget target=&quot;sf-tag-hg-code&quot;/&gt;
   185                     &lt;runtarget target=&quot;sf-tag-hg-code&quot;/&gt;
   175             &lt;/then&gt;
   186                 &lt;/then&gt;
   176         &lt;/if&gt;
   187             &lt;/if&gt;
       
   188             
       
   189             &lt;!-- Create MD5s --&gt;
       
   190             &lt;if&gt;
       
   191                 &lt;istrue value=&quot;${sf.spec.md5.enable}&quot;/&gt;
       
   192                 &lt;then&gt;
       
   193                     &lt;echo message=&quot;INFO Creating MD5s&quot;/&gt;
       
   194                     &lt;runtarget target=&quot;sf-run-evalid&quot;/&gt;
       
   195                 &lt;/then&gt;
       
   196             &lt;/if&gt;
       
   197             
       
   198             &lt;!-- Package up the binaries we built --&gt;
       
   199             &lt;if&gt;
       
   200                 &lt;istrue value=&quot;${sf.spec.package.bin.enable}&quot;/&gt;
       
   201                 &lt;then&gt;
       
   202                     &lt;echo message=&quot;INFO Packaging Binaries&quot;/&gt;
       
   203                     &lt;runtarget target=&quot;sf-package-binary&quot;/&gt;
       
   204                     &lt;runtarget target=&quot;sf-package-tools&quot;/&gt;
       
   205     
       
   206                     &lt;echo message=&quot;INFO Validate Zip files&quot;/&gt;
       
   207                     &lt;runtarget target=&quot;sf-package-validate&quot;/&gt;
       
   208                 &lt;/then&gt;
       
   209             &lt;/if&gt;
       
   210             
       
   211             &lt;!-- run build analysis tools --&gt;
       
   212             &lt;runtarget target=&quot;sf-run-analysis&quot;/&gt;
   177         
   213         
   178         &lt;if&gt;
   214             &lt;if&gt;
   179             &lt;istrue value=&quot;${sf.spec.md5.enable}&quot;/&gt;
   215               &lt;istrue value=&quot;${sf.spec.publish.enable}&quot;/&gt;
   180             &lt;then&gt;
   216               &lt;then&gt;
   181                 &lt;echo message=&quot;INFO Creating MD5s&quot;/&gt;
   217                 &lt;!-- Generate reports to compare this build to a previous one --&gt;
   182                 &lt;runtarget target=&quot;sf-run-evalid&quot;/&gt;
   218                 &lt;runtarget target=&quot;sf-compare-to-baseline&quot;/&gt;
   183             &lt;/then&gt;
   219               &lt;/then&gt;
   184         &lt;/if&gt;
   220             &lt;/if&gt;
   185         &lt;if&gt;
       
   186             &lt;istrue value=&quot;${sf.spec.package.bin.enable}&quot;/&gt;
       
   187             &lt;then&gt;
       
   188                 &lt;echo message=&quot;INFO Packaging Binaries&quot;/&gt;
       
   189                 &lt;runtarget target=&quot;sf-package-binary&quot;/&gt;
       
   190                 &lt;runtarget target=&quot;sf-package-tools&quot;/&gt;
       
   191 
       
   192                 &lt;echo message=&quot;INFO Validate Zip files&quot;/&gt;
       
   193                 &lt;runtarget target=&quot;sf-package-validate&quot;/&gt;
       
   194             &lt;/then&gt;
       
   195         &lt;/if&gt;
       
   196         &lt;!-- run build analysis tools --&gt;
       
   197         &lt;runtarget target=&quot;sf-run-analysis&quot;/&gt;
       
   198         
       
   199         &lt;/parallel&gt;
   221         &lt;/parallel&gt;
   200         
   222         
       
   223         &lt;!-- Launch smoketest --&gt;
   201         &lt;if&gt;&lt;istrue value=&quot;${sf.spec.test.sendpkg.enable}&quot;/&gt;
   224         &lt;if&gt;&lt;istrue value=&quot;${sf.spec.test.sendpkg.enable}&quot;/&gt;
   202             &lt;then&gt;
   225             &lt;then&gt;
   203                 &lt;runtarget target=&quot;sf-build-smoketestpkg&quot;/&gt;
   226                 &lt;runtarget target=&quot;sf-build-smoketestpkg&quot;/&gt;
   204                 &lt;runtarget target=&quot;sf-send-testpkg&quot;/&gt;
   227                 &lt;runtarget target=&quot;sf-send-testpkg&quot;/&gt;
   205             &lt;/then&gt;
   228             &lt;/then&gt;
   206         &lt;/if&gt;
   229         &lt;/if&gt;
   207 
   230 
   208 
   231         &lt;!-- Launch BC check --&gt;
   209         &lt;runtarget target=&quot;sf-zip-logs&quot;/&gt;
       
   210 
       
   211         &lt;!-- Do BC check --&gt;
       
   212         &lt;if&gt;&lt;istrue value=&quot;${sf.spec.bccheck.enable}&quot;/&gt;
   232         &lt;if&gt;&lt;istrue value=&quot;${sf.spec.bccheck.enable}&quot;/&gt;
   213             &lt;then&gt;
   233             &lt;then&gt;
   214                 &lt;runtarget target=&quot;sf-bc-check&quot;/&gt;
   234                 &lt;runtarget target=&quot;sf-bc-check&quot;/&gt;
   215             &lt;/then&gt;
   235             &lt;/then&gt;
   216         &lt;/if&gt;
   236         &lt;/if&gt;
   217 
   237 
   218         &lt;!-- PUBLISH LOGS/REPORTS --&gt;
   238         &lt;!-- Zip up all the logs --&gt;
       
   239         &lt;runtarget target=&quot;sf-zip-logs&quot;/&gt;
       
   240 
       
   241         &lt;!-- Publish logs/reports --&gt;
   219         &lt;if&gt;
   242         &lt;if&gt;
   220             &lt;istrue value=&quot;${sf.spec.publish.enable}&quot;/&gt;
   243             &lt;istrue value=&quot;${sf.spec.publish.enable}&quot;/&gt;
   221             &lt;then&gt;
   244             &lt;then&gt;
   222                 &lt;echo message=&quot;Publish log files and reports to ${sf.spec.publish.rootdir}&quot;/&gt;
   245                 &lt;echo message=&quot;Publish log files and reports to ${sf.spec.publish.rootdir}&quot;/&gt;
   223                 &lt;runtarget target=&quot;sf-publish&quot;/&gt;
   246                 &lt;runtarget target=&quot;sf-publish&quot;/&gt;