equal
deleted
inserted
replaced
26 CI related targets |
26 CI related targets |
27 </description> |
27 </description> |
28 |
28 |
29 <!-- Delete all the folders based on configurations file inside dir-path, optional attribute pool-size's default value is 4 --> |
29 <!-- Delete all the folders based on configurations file inside dir-path, optional attribute pool-size's default value is 4 --> |
30 <target name="delete-folders-from-list" if = "ci.cleanup.env.dir"> |
30 <target name="delete-folders-from-list" if = "ci.cleanup.env.dir"> |
31 <exec osfamily="windows" executable="python" failonerror="true" outputproperty="delete.folders.drive"> |
31 <hlm:deleteFoldersFromDirMacro dir-path="${ci.cleanup.env.dir}" /> |
32 <arg line="-m searchnextdrive"/> |
|
33 </exec> |
|
34 <hlm:deleteFoldersFromDirMacro dir-path="${ci.cleanup.env.dir}" delete-folders-drive="${delete.folders.drive}"/> |
|
35 </target> |
32 </target> |
36 |
33 |
37 <!-- Delete all the folders based on configurations file inside dir-path, optional attribute pool-size's default value is 4 --> |
34 <!-- Delete all the folders based on configurations file inside dir-path, optional attribute pool-size's default value is 4 --> |
38 <scriptdef name="deleteFoldersFromDirMacro" language="jython" uri="http://www.nokia.com/helium"> |
35 <scriptdef name="deleteFoldersFromDirMacro" language="jython" uri="http://www.nokia.com/helium"> |
39 <attribute name="dir-path" /> |
36 <attribute name="dir-path" /> |
46 import sys |
43 import sys |
47 from java.io import IOException |
44 from java.io import IOException |
48 |
45 |
49 dir_path = str(attributes.get('dir-path')) |
46 dir_path = str(attributes.get('dir-path')) |
50 del_folder_drive = attributes.get('delete-folders-drive') |
47 del_folder_drive = attributes.get('delete-folders-drive') |
|
48 if del_folder_drive: |
|
49 self.log("Warning: the delete-folders-drive attribute is deprecated, please stop using it.") |
51 pool_size = attributes.get('pool-size') |
50 pool_size = attributes.get('pool-size') |
52 if pool_size != None: |
51 if pool_size != None: |
53 pool_size = str(pool_size) |
52 pool_size = str(pool_size) |
54 else: |
53 else: |
55 pool_size = "4" |
54 pool_size = "4" |
262 output.close() |
261 output.close() |
263 </hlm:python> |
262 </hlm:python> |
264 </sequential> |
263 </sequential> |
265 </macrodef> |
264 </macrodef> |
266 |
265 |
|
266 <!--* @property ci.session.file |
|
267 Location of the session file which will be created by Helium. |
|
268 @type string |
|
269 @editable required |
|
270 @scope public |
|
271 --> |
|
272 |
|
273 <!--* @property ci.project.config |
|
274 Location of the configuration that will be generated for the Cruise Control HLMSynergy modificationset. |
|
275 @type string |
|
276 @editable required |
|
277 @scope public |
|
278 --> |
|
279 |
|
280 <!--* @property ci.min.ba.maintain |
|
281 Minimal number of build area to keep. |
|
282 @type string |
|
283 @editable required |
|
284 @scope public |
|
285 --> |
|
286 |
267 <!-- Validate input for the ci-monitor-ccm-session target --> |
287 <!-- Validate input for the ci-monitor-ccm-session target --> |
268 <target name="ci-monitor-ccm-session-validate" depends="ccm-prepare-input"> |
288 <target name="ci-monitor-ccm-session-validate" depends="ccm-prepare-input"> |
269 <if> |
289 <if> |
270 <and> |
290 <and> |
271 <available file="${prep.delivery.conf.parsed}"/> |
291 <available file="${prep.delivery.conf.parsed}"/> |