在 Jenkins 中同步时 Perforce 翻译文件错误

Perforce Translation of file error while Synching in Jenkins

My Jenkins Version: 2.46.2- LTS.
Jenkins OS: Ubuntu (This is Jenkins Master Server).
Perforce Plugin Version: 1.7.5
Slave Machine: OS Windows-7 (64Bit).
Perforce Visual Client Version: 2016.2

我已经配置 perforce 将代码从主服务器同步到从机。但是当我尝试下载时显示以下错误。

詹金斯错误:-

Caught exception communicating with perforce.Error encountered while force synching. Error: Translation of file content failed near Line.

因此我无法下载files.So任何建议都会有所帮助。

这听起来像是 Unicode 翻译错误。将 P4CHARSET 设置为不同的值可能会有所帮助,但是如果文件在后端损坏(即它们​​不是有效的 utf8,这是服务器规范化所有 Unicode 文件副本的方式)那么您设置什么都无关紧要在客户端上。

好的故障排除步骤是尝试将同一文件同步到另一个客户端,并查看最初提交客户端的历史记录并尝试找出它使用的字符集。