Adding an SCM Git Instance to the Code Insight Project

The following procedure describes how to add an SCM Git instance in a Code Insight project.

You can configure one or more Git instances, each instance identifying one or more repositories. All repositories identified in a given instance must use the same set of credentials.

To configure an SCM Git instance, do the following:

1. Use the instructions in Adding an SCM Instance to the Code Insight Project to navigate to the Version Control Settings tab.
2. On the tab, select Git from the Application dropdown list.
3. Click Add Instance.
4. Define the SCM Git instance, referring to Fields Used to Configure a SCM Git Instance for a description of the instance settings. Alternatively, use the inline help provided for each field on the tab. As mentioned previously, you can enter multiple Git repository URLs in the instance.
5. Once you have completed the fields, click Test Connection to determine whether the instance can connect to all the repository URLs listed. If all connections are successful, a success message is displayed in the top-right corner of the screen.

If one or more connections in the instance are unsuccessful, an error popup is displayed, showing the list of repository connections that failed. You can edit the fields as needed and test the connections again.

6. Once you have successfully set up the connections in the SCM Git instance, click Add Instance to create another SCM Git instance. Alternatively, select a different repository type from the Application dropdown list to create SCM instances of that type.
7. As a best practice, after you configured and tested the SCM instances for the project, click Sync Now to ensure that the codebases across all SCM instances for the project are properly synchronized to the Scan Server. See both Synchronizing an SCM Instance for general synchronization information and Processing of Git Repository URLs During a Synchronization for information specific to synchronization of Git instances.
8. Click Save to save the changes across all SCM instances to the Code Insight database.