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 |
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-zip-logs" alt="" coords="156,5,247,53"> |
132 <area shape="rect" id="node1" href="target-sf-zip-logs.html" title="sf-zip-logs" alt="" coords="223,113,313,161"> |
136 <area shape="rect" id="node2" href="target-sf-postbuild.html" title="sf-postbuild" alt="" coords="5,5,107,53"> |
133 <area shape="rect" id="node2" href="target-sf-postbuild.html" title="sf-postbuild" alt="" coords="39,5,140,53"> |
|
134 <area shape="rect" id="node4" href="target-sf-create-public-PDK.html" title="sf-create-public-PDK" alt="" coords="5,77,173,125"> |
|
135 <area shape="rect" id="node6" href="target-sf-test-smoketest.html" title="sf-test-smoketest" alt="" coords="20,149,159,197"> |
|
136 <area shape="rect" id="node8" href="target-sf-test-bc-check.html" title="sf-test-bc-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 <target name="sf-zip-logs"> |
144 <target name="sf-zip-logs"> |
145 <if> |
145 <if> |
146 <istrue value="${sf.spec.logs.zip.enable}"/> |
146 <istrue value="${sf.spec.logs.zip.enable}"/> |
147 <then> |
147 <then> |
148 <property name="temp.log.dir" value="${env.TEMP}/${build.id}_output_logs"/> |
148 <mkdir dir="${build.output.dir}/zips/release"/> <!-- workaround for when there's no other releaseables, just the logs --> |
149 <echo message="Zip log requested, zipping logs..."/> |
149 <zip destfile="${build.output.dir}/zips/release/build_logs.zip" basedir="${build.drive}"> |
150 <mkdir dir="${temp.log.dir}"/> |
|
151 <zip destfile="${temp.log.dir}/build_logs.zip" basedir="${build.drive}"> |
|
152 <include name="output/logs/**"/> |
150 <include name="output/logs/**"/> |
153 <exclude name="output/logs/BOM/**"/> |
151 <exclude name="output/logs/BOM/**"/> |
154 <exclude name="output/logs/deliverables/**"/> |
152 <exclude name="output/logs/deliverables/**"/> |
155 <exclude name="output/logs/releaseables/**"/> |
153 <exclude name="output/logs/releaseables/**"/> |
156 </zip> |
154 </zip> |
157 <zip destfile="${temp.log.dir}/build_BOM.zip"> |
155 <!-- workaround for the time when when 'sf-run-analysis-raptor' has not been run --> |
|
156 <mkdir dir="${build.drive}/output/logs/releaseables"/> |
|
157 <zip destfile="${build.output.dir}/zips/release/build_BOM.zip"> |
158 <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/> |
158 <zipfileset dir="${build.drive}/output/logs/BOM" prefix="build_info/logs/BOM"/> |
159 <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/> |
159 <zipfileset dir="${build.drive}/output/logs/releaseables" prefix="build_info/logs/releaseables"/> |
160 </zip> |
160 </zip> |
161 <move todir="${build.log.dir}"> |
|
162 <fileset dir="${temp.log.dir}"/> |
|
163 </move> |
|
164 </then> |
161 </then> |
165 </if> |
162 </if> |
166 </target> |
163 </target> |
167 </pre> |
164 </pre> |
168 |
165 |