The task is used to cleanup Enterprise Extensions Source Code Data (SCD) scan request and result items from the data base. This housekeeping tool may be needed when daily scan requests exceed the daily cleanup limit of 500 prior to EWM version 7.1. Over time, scan items that are over this limit may accumulate and cause significant impact on the ELM data base.
The task supports Team Build Attributes, Build Extensions Debugging Attributes, Build Extensions General Attributes, as well as, its own task specific attributes. Click on a link for more information on the common attributes.
The following table describes the task specific attributes for the task:
| Task Specific Attributes | ||
| Attribute | Description | Required |
| limit | Specifies the maximum number of scan items, for a scan configuration, to process at one time. The default is 231-1 (Integer.MAX_VALUE). If the total number of scan items found is greater than available client storage can accommodate, specify a limit to retrieve and process scan items in groups. For example: if you specify a limit of 5000, the scans will be processed in groups of 5000 until the total number found is processed. Processing scans items in groups will reduce the client storage needed to complete the task. | No |
| preview |
Specify true to preview what scan items will be deleted. The default is false; all scan items will be deleted.
|
No |
| orphans |
Specify true to process orphaned scan request and result items. The default is false; non-orphaned scan request and result items will be processed. Scan request and result items can be orphaned when a scan configuration is deleted.
|
No |
Delete all SCD scan items from the data base:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed Materials - Property of IBM
(c) Copyright IBM Corporation 2024. All Rights Reserved.
Note to U.S. Government Users Restricted Rights:
Use, duplication or disclosure restricted by GSA ADP Schedule
Contract with IBM Corp.
-->
<project
name="Delete Scans"
default="all"
xmlns:xt="antlib:com.ibm.team.enterprise.build.extensions.toolkit">
<description>Delete Scans</description>
<loadproperties srcFile="${user.home}${file.separator}tvt6012.9702.properties"/>
<target name="main" description="main">
<xt:deleteScans
repositoryAddress="${repositoryAddress}"
userId="${userId}"
password="${password}">
</xt:deleteScans>
</target>
<target depends="main" description="all" name="all"/>
</project>