[JIRA] (JENKINS-58698) Perforce sync fails for symlinks

9 views
Skip to first unread message

rgoel@cadence.com (JIRA)

unread,
Jul 29, 2019, 1:27:03 AM7/29/19
to jenkinsc...@googlegroups.com
Rohit Goel created an issue
 
Jenkins / Bug JENKINS-58698
Perforce sync fails for symlinks
Issue Type: Bug Bug
Assignee: Unassigned
Components: p4-plugin
Created: 2019-07-29 05:26
Environment: Jenkins 2.176.2
Java 1.8
P4 Plugin 1.10.3
Priority: Blocker Blocker
Reporter: Rohit Goel

We are facing problems syncing workspace on Windows for files that are symlinks.
The workspace is on a Unix machine accessed through a mapped drive on Windows.
Jenkins master setup is on Unix with a Windows agent for Windows builds

Jul 26, 2019 11:24:02 AM SEVERE org.jenkinsci.plugins.p4.tasks.AbstractTask retryTask
P4 Task: attempt: 1
Jul 26, 2019 11:24:05 AM SEVERE org.jenkinsci.plugins.p4.tasks.AbstractTask tryTask
P4: Task Exception: com.perforce.p4java.exception.P4JavaException: com.perforce.p4java.exception.P4JavaException: hudson.AbortException: P4JAVA: Error(s):
symlink file Z:\p4workspace\testws\depot\test.cpp can't be sync'd or created with this client program.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

kwirth@perforce.com (JIRA)

unread,
Jul 29, 2019, 5:46:02 AM7/29/19
to jenkinsc...@googlegroups.com
Karl Wirth commented on Bug JENKINS-58698
 
Re: Perforce sync fails for symlinks

Hi Rohit Goel. This is usually caused because you have not given the Jenkins agent OS user the correct policy to create symlinks. Note even Administraror does not get this by default. 

 

Also so if you ran 1.10.2 or 1.10.1 you may need to manually clear the workspace first. 

 

Note - I am not in front of a computer for the next few weeks so I apologise for a delay in responding. 

mats.liljegren@flir.se (JIRA)

unread,
Aug 1, 2019, 5:15:03 AM8/1/19
to jenkinsc...@googlegroups.com

I get the same error, running on Jenkins Server (Ubuntu 16.04.3 LTS), it didn't get as far as starting any build slaves. But the build slave is Linux as well. This is a multi-branch pipeline job using Helix Swarm as build source.

Jenkins version: Jenkins ver. 2.177

P4 plugin version: 1.10.1

mats.liljegren@flir.se (JIRA)

unread,
Aug 2, 2019, 6:26:02 AM8/2/19
to jenkinsc...@googlegroups.com

I upgraded plugin to 1.10.3, and it seems to work better. Haven't had any issues so far...

 

pallen@perforce.com (JIRA)

unread,
Aug 16, 2019, 10:58:02 AM8/16/19
to jenkinsc...@googlegroups.com
Paul Allen closed an issue as Fixed
 

Resolved in 1.10.2

Change By: Paul Allen
Status: Open Closed
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages