doc/api/helium/target-sf-zip-logs.html
changeset 627 56a1d97e7c73
parent 432 f2ddfa555b0f
equal deleted inserted replaced
607:3c858aa7a023 627:56a1d97e7c73
    80 
    80 
    81     
    81     
    82 <h2>Target sf-zip-logs</h2>
    82 <h2>Target sf-zip-logs</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#L480">D:\maintools\sf-config\common\build.postbuild.xml:480:</a></tt>  
    85 <p>    <tt class="docutils literal"><a href="/d:/maintools/sf-config/common/build.postbuild.xml#L601">d:\maintools\sf-config\common\build.postbuild.xml:601:</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/>
    91 
    91 
    92 <h3>Description</h3>
    92 <h3>Description</h3>
    93 <p>
    93 <p>
    94 <p>package all logs into zipfile before publish</p></p>
    94 <p>package all logs into zipfile for publishing</p></p>
    95 <p/>
    95 <p/>
    96 <hr/>
    96 <hr/>
    97 
    97 
    98 
    98 
    99 
    99 
   114                     </tr>
   114                     </tr>
   115     <tr>
   115     <tr>
   116         <td colspan="2">Internal properties</td>
   116         <td colspan="2">Internal properties</td>
   117     </tr>
   117     </tr>
   118                     <tr>
   118                     <tr>
   119                         <td><a href="property-build.id.html" title="<p>A unique ID for the build.</p>" target="classframe"><tt class="docutils literal">build.id</tt></a></td><td><a href="help.html" title="Help" target="classframe">discouraged</a></td>
   119                         <td><a href="property-build.output.dir.html" title="<p>This is the directory where build output is placed.</p>" target="classframe"><tt class="docutils literal">build.output.dir</tt></a></td><td><a href="help.html" title="Help" target="classframe">never</a></td>
   120                     </tr>
       
   121                     <tr>
       
   122                         <td><a href="property-build.log.dir.html" title="<p>This is where the build logs are stored.</p>" target="classframe"><tt class="docutils literal">build.log.dir</tt></a></td><td><a href="help.html" title="Help" target="classframe">discouraged</a></td>
       
   123                     </tr>
   120                     </tr>
   124 </table>
   121 </table>
   125 </p>
   122 </p>
   126 
   123 
   127 <hr/>
   124 <hr/>
   130 <h3>Target dependencies</h3>
   127 <h3>Target dependencies</h3>
   131 <p align="center">
   128 <p align="center">
   132 <img src="target-sf-zip-logs.dot.png" alt="sf-zip-logs dependencies" usemap="#dependencies"
   129 <img src="target-sf-zip-logs.dot.png" alt="sf-zip-logs dependencies" usemap="#dependencies"
   133      style="border-style: none"/>
   130      style="border-style: none"/>
   134 <map name="dependencies" id="dependencies">
   131 <map name="dependencies" id="dependencies">
   135 <area shape="rect" id="node1" href="target-sf-zip-logs.html" title="sf&#45;zip&#45;logs" alt="" coords="156,5,247,53">
   132 <area shape="rect" id="node1" href="target-sf-zip-logs.html" title="sf&#45;zip&#45;logs" alt="" coords="223,113,313,161">
   136 <area shape="rect" id="node2" href="target-sf-postbuild.html" title="sf&#45;postbuild" alt="" coords="5,5,107,53">
   133 <area shape="rect" id="node2" href="target-sf-postbuild.html" title="sf&#45;postbuild" alt="" coords="39,5,140,53">
       
   134 <area shape="rect" id="node4" href="target-sf-create-public-PDK.html" title="sf&#45;create&#45;public&#45;PDK" alt="" coords="5,77,173,125">
       
   135 <area shape="rect" id="node6" href="target-sf-test-smoketest.html" title="sf&#45;test&#45;smoketest" alt="" coords="20,149,159,197">
       
   136 <area shape="rect" id="node8" href="target-sf-test-bc-check.html" title="sf&#45;test&#45;bc&#45;check" alt="" coords="24,221,155,269">
   137 </map>
   137 </map>
   138 </p>
   138 </p>
   139 <hr/>
   139 <hr/>
   140 
   140 
   141 
   141 
   143 <pre>
   143 <pre>
   144     &lt;target name=&quot;sf-zip-logs&quot;&gt;
   144     &lt;target name=&quot;sf-zip-logs&quot;&gt;
   145         &lt;if&gt;
   145         &lt;if&gt;
   146             &lt;istrue value=&quot;${sf.spec.logs.zip.enable}&quot;/&gt;
   146             &lt;istrue value=&quot;${sf.spec.logs.zip.enable}&quot;/&gt;
   147             &lt;then&gt;
   147             &lt;then&gt;
   148                 &lt;property name=&quot;temp.log.dir&quot; value=&quot;${env.TEMP}/${build.id}_output_logs&quot;/&gt;
   148                 &lt;mkdir dir=&quot;${build.output.dir}/zips/release&quot;/&gt; &lt;!-- workaround for when there's no other releaseables, just the logs --&gt;
   149                 &lt;echo message=&quot;Zip log requested, zipping logs...&quot;/&gt;
   149                 &lt;zip destfile=&quot;${build.output.dir}/zips/release/build_logs.zip&quot; basedir=&quot;${build.drive}&quot;&gt; 
   150                 &lt;mkdir dir=&quot;${temp.log.dir}&quot;/&gt;
       
   151                 &lt;zip destfile=&quot;${temp.log.dir}/build_logs.zip&quot; basedir=&quot;${build.drive}&quot;&gt; 
       
   152                     &lt;include name=&quot;output/logs/**&quot;/&gt;
   150                     &lt;include name=&quot;output/logs/**&quot;/&gt;
   153                     &lt;exclude name=&quot;output/logs/BOM/**&quot;/&gt;
   151                     &lt;exclude name=&quot;output/logs/BOM/**&quot;/&gt;
   154                     &lt;exclude name=&quot;output/logs/deliverables/**&quot;/&gt;
   152                     &lt;exclude name=&quot;output/logs/deliverables/**&quot;/&gt;
   155                     &lt;exclude name=&quot;output/logs/releaseables/**&quot;/&gt;
   153                     &lt;exclude name=&quot;output/logs/releaseables/**&quot;/&gt;
   156                 &lt;/zip&gt;
   154                 &lt;/zip&gt;
   157                 &lt;zip destfile=&quot;${temp.log.dir}/build_BOM.zip&quot;&gt;
   155                 &lt;!-- workaround for the time when when 'sf-run-analysis-raptor' has not been run --&gt;
       
   156                 &lt;mkdir dir=&quot;${build.drive}/output/logs/releaseables&quot;/&gt; 
       
   157                 &lt;zip destfile=&quot;${build.output.dir}/zips/release/build_BOM.zip&quot;&gt;
   158                     &lt;zipfileset dir=&quot;${build.drive}/output/logs/BOM&quot; prefix=&quot;build_info/logs/BOM&quot;/&gt;
   158                     &lt;zipfileset dir=&quot;${build.drive}/output/logs/BOM&quot; prefix=&quot;build_info/logs/BOM&quot;/&gt;
   159                     &lt;zipfileset dir=&quot;${build.drive}/output/logs/releaseables&quot; prefix=&quot;build_info/logs/releaseables&quot;/&gt;
   159                     &lt;zipfileset dir=&quot;${build.drive}/output/logs/releaseables&quot; prefix=&quot;build_info/logs/releaseables&quot;/&gt;
   160                 &lt;/zip&gt;
   160                 &lt;/zip&gt;
   161                 &lt;move todir=&quot;${build.log.dir}&quot;&gt;
       
   162                     &lt;fileset dir=&quot;${temp.log.dir}&quot;/&gt;
       
   163                 &lt;/move&gt;
       
   164             &lt;/then&gt;
   161             &lt;/then&gt;
   165         &lt;/if&gt;
   162         &lt;/if&gt;
   166     &lt;/target&gt;
   163     &lt;/target&gt;
   167 </pre>
   164 </pre>
   168 
   165