Occasionally our project reports build failures, but when we go to look at the build output it appears that the only thing that failed was the p4 sync command. Upon running the build manually again it works fine.
Here is the dump that all of the failures look like:
[none] $ "C:\Program Files\Perforce\p4" -s sync -f //automated_build_sepac_main/...@204714
Caught exception communicating with perforce. Errors encountered while force syncing: error: RpcTransport: partial message read
error: TCP receive failed.
error: read: socket: WSAECONNRESET
com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: RpcTransport: partial message read
error: TCP receive failed.
error: read: socket: WSAECONNRESET
at com.tek42.perforce.parse.Workspaces.syncTo(Workspaces.java:167)
at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:1126)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
at hudson.model.Run.execute(Run.java:1744)
at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:374)
ERROR: Unable to communicate with perforce. Errors encountered while force syncing: error: RpcTransport: partial message read
error: TCP receive failed.
error: read: socket: WSAECONNRESET
Finished: FAILURE