I'm having an issue where workspaces that are created during a pipeline sync based upon a template are not using that template's defined client type. The newly created workspace always defaults to Writeable. (See the attached images).
I'm not sure if this is intentional behaviour as I couldn't find anywhere in the plugin docs that state otherwise.
Let me know if you need any more information,
Thanks!
[JENKINS-48471] Workspaces created via Templates don't use template's client type
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Labels | New: P4_A P4_PLUGIN |
Attachment | New: image-2024-12-20-16-58-19-260.png [ 63736 ] |
I've found the same issue, which is still present in 1.13.0.
Given that the recommended type of workspace to use for continuous integration with Perforce is "partitioned" or "readonly", it's a shame that templates always produce "writeable" workspaces.
Reading https://www.perforce.com/manuals/cmdref/Content/CmdRef/p4_client.html#Working_with_read-only_clients, automated builds should use "readonly" workspaces to avoid fragmenting and bloating the server's "db.have" file. The same is true of "partitioned" workspaces.