In this page of TeamCity Add-in options, you can enable and configure integration with Perforce VCS. If your solution is under Perforce, this integration will enable you to perform personal build, remote run, pre-tested commit and analyze changesets, builds and tests
Enable Perforce support
Select this checkbox to let TeamCity Add-in access your Perforce VCS.
Use Perforce client
Choose how TeamCity Add-in should find the Perforce client executable.
Specifies your Perforce server name and port.
Specifies the login name used to access Perforce.
Specifies the Perforce workspace for your project.
Specifies password for the login name.
From this list, select a specific charset used in the P4 client.
Click this button to test the specified connection settings.