Jump to content


com.perforce.p4java.exception.ConnectionException: Unexpected exception in ClientSystemFileCommands.openFile

p4java jenkins windows

  • Please log in to reply
No replies to this topic

#1 mlu

mlu

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 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





Also tagged with one or more of these keywords: p4java, jenkins, windows

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users