Synchronizing an SCM Instance
After testing your SCM connection, you can synchronize the instance to get the codebase files from the selected repository.
Note that the scan process also automatically synchronizes the data before initiating the actual scan to ensure that the latest codebase is in place.
To sync an SCM instance, do the following:
1. | If you are not already on the Version Control Settings tab on the Edit Project page, navigate to it. |
2. | Click Sync Now to synchronize the codebase repositories from all SCM instances to your project’s directory (identified by the project ID) on the Code Insight Scan Server. (Project directories are located under the scan root directory on the Scan Server.) Your project’s directory will contain subdirectories, with names such as git.0 or git.1, for each SCM instance created for your project. |
Note the following:
• | If multiple instances have been added, clicking Sync Now will synchronize all instances to your project. If the sync fails for one instance, the overall sync fails. |
• | If the Scan Server assigned to the project to which you are synchronizing codebase files is disabled, the Sync Now button is also disabled. Consider reassigning the project to an enabled Scan Server. (If necessary, see your Code Insight System Administrator for information about which servers are enabled). |