TeamCity 6.5 Help

Perforce

This page contains descriptions of the fields and options available when setting up VCS roots using Perforce:

P4 Connection Settings

Option

Description

Port

Specify the Perforce server address. The format is host:port.

Client

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.

Client Mapping

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 LineEnd option specified in Perforce instead of Client mapping. Alternatively you can add an Configuring Agent Requirements to run builds only on specific platform.

Example:

//depot/MPS/... //team-city-agent/... //depot/MPS/lib/tools/... //team-city-agent/tools/...

User

Specify the user login name.

Password

Specify the password.

Path to P4 executable

Specify the path to the Perforce command-line client: p4.exe file). This path will be used both for server-side checkout and for agent-side checkout. If you need different values for this path on different build agents when using agent-side checkout, you can set the value using TEAMCITY_P4_PATH environment variable in buildAgent.properties file

Ticket-based authentication

Check this option to enable ticket-based authentication.

Charset

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.

Workspace options for checkout on agent

If needed, you can set here the following options for http://www.perforce.com/perforce/doc.092/manuals/cmdref/client.html#1040665 command: Options, SubmitOptions, and LineEnd.

See also:

Administrator's Guide: VCS Checkout Mode

Last modified: 20 April 2023