When REPLACE missing/modified files checkbox is enabled, while using "Auto cleanup & sync" option, the build fails with the following error:
P4 Task: attempt: 1
P4 Task: failed: com.perforce.p4java.exception.ConnectionException: Java heap space
ERROR: P4 Task: failed: com.perforce.p4java.exception.ConnectionException: Java heap space
Skipped archiving because build is not successful
Finished: FAILURE