P4 Code Review integration properties
|
Property |
Meaning |
Since P4V Version |
|---|---|---|
|
|
Set to the URL for the P4 Code Review server to enable the integration with P4V. |
2014.3 |
|
|
If multiple P4 Code Review servers exist, include the serverid, which is represented by xxxx. |
2015.1 |
|
|
Set the timeout value for the P4V integration with P4 Code Review. By default, this is 10 seconds. |
2014.3 |
Configure P4 Code Review connections
For P4V to connect to a P4 Code Review server, it must know where the server is installed. Because P4 Code Review is a web application, a URL can specify its location.
The
P4 Code Review
or
P4V
administrator uses the P4.Swarm.URL.xxxx property to specify the location of a
P4 Code Review
server.
-
To identify the location of a single P4 Code Review server, use either the
P4.Swarm.URLor theP4.Swarm.URL.xxxxsyntax, depending on whether the server has a serverid. For example, the following command specifies that the location of the server given by10.5.40.145:1666ishttps://my_swarm_server.com.p4 -p "10.5.40.145:1666" property -a -n P4.Swarm.URL -v "https://my_swarm_server.com"
-
To identify the location of several P4 Code Review server instances, use the
P4.Swarm.URL.xxxxsyntax, and specify the server id for each P4 Code Review server each time you invoke thep4 propertycommand. For example:p4 -p "10.5.40.145:1666" property -a -n P4.Swarm.URL.svr1 -v "https://my_swarm_server1.com" p4 -p "10.5.40.145:1667" property -a -n P4.Swarm.URL.svr2 -v "https://my_swarm_server2.com"
Using the server id format is only necessary if you are using a Centralized authorization server (P4AUTH) or if you are deploying multiple instances of P4 Code Review against replicas or edge servers.
When
P4V
attempts to connect to a server that has no serverid, it checks to see if
the property P4.Swarm.URL is set, and
it uses that URL to access
P4 Code Review. If the
property is not set,
P4V
does not attempt to access the
P4 Code Review.
When P4V attempts to connect to a server that has a serverid,
- P4V
asks the server for its server id and gets, for example,
svr1. - P4V
checks the setting of
P4.Swarm.URL.svr1, and it uses that URL to attempt to access P4 Code Review server. - If
P4.Swarm.URL.svr1is not set, P4V checks the value ofP4.Swarm.URLand uses that value to attempt to access the P4 Code Review server. - If
P4.Swarm.URLis not set, P4V does not attempt to access the P4 Code Review.
If there is a value both for both URLs when P4V attempts to connect to a P4 Code Review server, the serverid match takes precedence.
The user issuing the p4 property command must have
an account on the specified
P4 Code Review
server.
You can use the p4 property command to list the
current properties of the
P4 Code Review
server; for example:
p4 -p "10.5.40.145:1666" property -l -A
P4.Swarm.Timeout = 10 (any) #1
P4.Swarm.URL.main-1666 = https://my_swarm_server1.com