Is there an easy groovy script that does nothing but create the clientspec on the perforce server for a given repo (or modifies it if it already exists) without doing an actual sync? I can't seem to locate such a thing easily in the quickbuild documentation.
It is important in this case to create the clientspec without syncing. Is that possible? I've tried that command and it definitely ends up syncing as well.
When calling setupClient() along, QB will executes "p4 client -i" to update the client spec only. I tested with below step and no files are synced to workspace:
- Create a test configuration and add a Perforce repo with desired client spec
- Inside master step add a step of type "Misc / Execute Script" running below script:
groovy:
repositories.get("p4 repo").setupClient(); - Now run this configuration. The client will be created at Perforce server with expected spec. Also check the client root directory, there is no files retrieved/synced
Make sure you do not add the checkout step into master when test above.