Jump to content


mlu

Member Since 20 Aug 2019
Offline Last Active Aug 22 2019 10:56 AM
-----

Topics I've Started

com.perforce.p4java.exception.ConnectionException: Unexpected exception in ClientSystem...

20 August 2019 - 10:18 AM

I have noticed that there is a difference between running sync command from Windows cmd and running same command from Jenkins.

In Jenkins I created a workspace, which should be used for checkout. One of the commands I can see in jenkins log is:
p4 sync -q C:\Perforce\Project1/...@123456
It ends up after few seconds with error:
ERROR: P4: Task Exception: com.perforce.p4java.exception.ConnectionException: Unexpected exception in ClientSystemFileCommands.openFile: C:\Perforce\Project1\Tools\build.exe (The process cannot access the file because it is being used by another process)java.io.FileNotFoundException: C:\Perforce\Project1\Tools\build.exe (The process cannot access the file because it is being used by another process)

However when I open cmd from P4v with same workspace and run command:
p4 sync -q C:\Perforce\Project1/...@123456
Everything works as it should.

Shouldn't they work the same? Is the command called by a plugin in a different way?

I am using P4 Plugin in version 1.10.3