Adding Custom Phases to the Scan Process

FlexNet Code Insight 6.13.2

The FlexNet Code Insight scan process loads and executes a set of groovy scripts, called scan-phase adapters, to perform the various phases of the scan process. Code Insight ships with a set of standard scan-phase adapters located in the config/scanEngine/autorun directory of your Code Insight installation. During the scan process, the scan automatically loads and executes only those adapters specific to your scan requirements and configuration. (For example, if Auto-Writeup is enabled on the Automated Analysis tab, the scan will load and execute autorun.Auto-WriteUp.groovy to perform Auto-Writeup as a phase during the scan process. If Auto-Writeup is not enabled, the adapter is not loaded.)

Code Insight also lets you provide your own scan-phase adapters (in addition to the standard adapters) to add phases that perform custom tasks at various points in the scan process. For example, you might need a phase that collects and returns scan results to your custom Web-based UI before analysis techniques such as Auto-Writeup, CodeAware, or Analysis are run.

Refer to the following sections for more information about providing a custom scan-phase adapter:

Sample Custom Scan-Phase Adapter Script
Rules and Considerations for Creating a Custom Scan-Phase Adapter