We are trying to run builds from Perforce read-only replica server which requires "-p" option since its a read-only. At the same time we want to clean the workspace before each build with "Full Wipe" option.
Perforce sync fails when using "Clean Workspace Before Each Build > Full Wipe" and "-p" option. Apparently "Full Wipe" is adding "-f" to the sync which makes it incompatible with "-p" which then fails the sync.
The full wipe should not assume that user wants to force sync the workspace.
Yes, actually, it should assume a force sync, otherwise the user won't get all the files unless their client's have table is also cleared, which the plugin doesn't do. Simply preventing a force sync from occurring will break the clean functionality for the majority of users.
I believe this is a bug in Perforce itself. '-f' and '-p' should not conflict with each other, as their functionality is not mutually exclusive. One option doesn't record the new state of the client while syncing, and the other syncs files even if the client reports them as being synced already.