To connect to a particular Coverity Connect server, a client system needs to locally specify some setup information. In addition, before a client can connect to it, the Coverity Connect server must be set up to support Code Sight clients.
The following sections explain the setup steps for both the server and its clients.
Client-side configuration for Coverity Connect
To configure a client system so that Code Sight can connect to a particular Coverity Connect server, you need to specify that server in the local, user-specific coverity.conf file. This configuration file is in JSON format.
Best Practice: A development team should share common settings, so create a project-specific coverity.conf file. Then check it in to your code repository so each developer can download the same configuration.
- Use a text editor to create a new text file named coverity.conf.
-
Copy the following text into the coverity.conf file:
{ "type": "Coverity configuration", "format_version": 1, "format_minor_version": 7, "settings": { "server": { "url": "https://coverity-server.example.com:443", "ssl": true, "on_new_cert": "trust" }, "stream": "myProjectsStreamName" } } -
Change the value of the
"url"field in the"server"record to point to your Coverity Connect server. The"url"string must include the protocol,http://orhttps://, and the port. The port value defaults to 80 for a nonsecure server (http) or 443 for a secure server (https). -
Change the value of the
streamfield to the name of the Coverity Connect stream that your project is using. - Save the file to the root directory of your project’s code repository.
- Commit the edited coverity.conf file to your code repository so that all users will share the same settings automatically.