I've created a perforce workspace and I've sync it to the head version.
However I would like to sync the same workspace to a label but without deleting files that are not in the label. Like running the command p4 sync <workspace>/... @=label .
I've tried many combinations of the populate command but all of them have run something like p4 sync <arguments><workspace>/... @label
Is there a way to run the p4sync command on jenkins so that it run a p4 sync ** @= command?*
Thanks!
- is caused by
-
JENKINS-58745 P4Groovy p4.run() does not locate credentials in folder
-
- Closed
-
I'm hitting the same problem - I've been experimenting with using the P4 object to sync to a small subset of the stream we are building on, on the master. Using p4sync with the same credentials works correctly, but creating a p4 object and then syncing fails with "ERROR: P4: Task Exception: Invalid credentials". Unfortunately it's not practical to fully sync to our streams on the master, as they are quite large.