Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: p4-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.176.2
      Java 1.8
      P4 Plugin 1.10.3
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          p4karl Karl Wirth added a comment -

          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. 

          Show
          p4karl Karl Wirth added a comment - 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. 
          Hide
          mats Mats Liljegren added a comment -

          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

          Show
          mats Mats Liljegren added a comment - 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
          Hide
          mats Mats Liljegren added a comment -

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

           

          Show
          mats Mats Liljegren added a comment - I upgraded plugin to 1.10.3, and it seems to work better. Haven't had any issues so far...  
          Hide
          p4paul Paul Allen added a comment -

          Resolved in 1.10.2

          Show
          p4paul Paul Allen added a comment - Resolved in 1.10.2

            People

            • Assignee:
              Unassigned
              Reporter:
              rgoel Rohit Goel
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: