-
Bug
-
Resolution: Fixed
-
Major
-
p4jenkins 1.13.0
The server's errors.csv has an entry for a failed counter command whenever your populate option does a "pin at label" to a changelist (number).
This applies to freestyle jobs or pipeline jobs running p4sync/checkout with a "pin at label".
Builds complete, the errors.csv entry does not affect the build.
To reproduce:
configure your p4d server for structured logs:
p4 configure set servername#serverlog.file.1=errors.csv
Create a freestyle job. Any credential. Any legal client view.
Populate option Autocleanup and sync (don't think it matters)
for "Pin build at Perforce Label" enter a recent changelist # like "123".
Setup polling, say at */2 * *. * *.
Wait until it polls. You'll see the problem "p4 counter nnnn" in the polling log:
P4 Task: establishing connection.
... server: xxx-u231.das.perforce.com:1666
... node: xxx-u231
... p4 counter 123 +
P4: Polling with range: 76,123
examine errors.csv:
4.50,1670374239,27658338,2022/12/06 16:50:39 027658338,2728954,1DE7D3AC6EA1152BE2C16770F02D171A,master,1,jbrown,jbrown-u221,user-counter,127.0.0.1,p4,2022.1/LINUX26X86_64/2285021,123,error,6,12,Purely numeric name not allowed - %27123%27.
—
Comes from ConnectionHelper.isCounter(). Shouldn't run the counter command if name is a numeric.