I am struggling with configuring Team City to download the source code from Perforce (P4) which can be accessed over the SSL. Without SSL everything work perfectly fine. All I actually did was to add "ssl:" in a front of the host specification. After running the build I got error message:
The authenticity of '126.96.36.199:1666' can't be established,
this may be your first attempt to connect to this P4PORT.
The fingerprint for the key sent to your client is
To allow connection use the 'p4 trust' command.
The problem is that running "p4 trust" doesn't help (from the command line). I tried several more things. Non of them works:
- Run 'p4 trust' as the Administrator and run TeamCity server service on Administrator credentials.
- Specify env.P4TRUST environment variable for the project configuration that points to the p4trust.txt file with the server trust entry.
When I am performing all P4 related actions from the command line, I can complete everything without any problems. My configuration looks like this:
After running "p4 trust" I can add the server as a trusted one and continue working with the P4 repository.
If anyone has had a similar problem please share your findings.
Team City configuration:
- TeamCity Professional 7.1 (build 23907)
- Windows Server 2008 R2 Enterprise SP1 (64-bit)