Perforce
This page contains descriptions of the fields and options available when setting up VCS roots using Perforce.
P4 Connection Settings
Option | Description |
---|---|
Specify the Perforce server address. The format is host:port. | |
Click this radio button to directly specify the client workspace. The workspace should already be created by Perforce client applications like P4V or P4Win. Only mapping rules are used from the configured client workspace. The client name is ignored. | |
Click this radio button to specify the mapping of the depot to the client computer. If you have Client mapping selected, TeamCity handles file separators according to OS/platform of a build agent where a build is run. To enforce specific line separator for all build agents, use Client having Example: | |
Specify the user login name. | |
Specify the password. | |
Check this option to enable ticket-based authentication. |
Checkout Settings
Option | Description |
---|---|
Since TeamCity 7.1. If you need to check out sources not with the latest revision, but with specific Perforce label (with selective changes), you can specify this label here. For instance, this can be useful to produce a milestone/release build, or a reproduce build. If the field is left blank, the latest sources revision will be used for checkout. You can also specify changelist number here. | |
If needed, you can set here the following options for http://www.perforce.com/perforce/doc.092/manuals/cmdref/client.html#1040665 command: |
Other Settings
Specify the path to the Perforce command-line client: | |
---|---|
Select the character set used on the client computer. | |
Support UTF-16 encoding | Enable this option if you have UTF-16 files in your project. |
When agent-side checkout is used, TeamCity creates a Perforce workspace for each checkout directory/VCS root. These workspaces are automatically created when necessary and are automatically deleted after some idle time. It is possible to customize the name generated by TeamCity: add teamcity.perforce.workspace.prefix
configuration parameter at the Build Parameters page with the prefix in the value.