Perforce ditto mappings from clientspec do not work

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: p4-plugin
    • Environment:
      Jenkins version 2.158
      P4-Plugin version 1.9.5
      Jenkins master server running on a centOS 7.3 VM. Jenkins slave launched through jenkins console. Slaves are also centos 7.3 VMs.

      Hi

       

      Please refer to p4karl comment below for exact repro steps and error message. Error message pasted by me few lines below is incorrect.

       

      ----------------

      I use p4 plugin in my free style jenkins jobs to sync down source from our perforce server with a spec file located in depot. We use perforce [ditto mappings|https://www.perforce.com/manuals/p4guide/Content/P4Guide/configuration.workspace_view.one-to-many.html]  in our clientspec to map few files from one to many locations. While this works on our own machines with the p4 client, it fails on our jenkins job with warning like below.

       

      Warning: Client Spec line invalid, ignoring. (&//depot/mysource/a.xml //sc1234-ws/mysource/v1/a.xml)

       

      My clientspec view file has lines like 

      +/depot/mysource/a.xml //sc1234-ws/mysource/v1/a.xml
      &/depot/mysource/a.xml //sc1234-ws/mysource/v2/a.xml

      +/depot/mysource/b.xml //sc1234-ws/mysource/v1/b.xml
      &/depot/mysource/b.xml //sc1234-ws/mysource/v2/b.xml

       

      Are ditto mapping supported by this p4-plugin? And if yes, is this a bug? Please help.

       

      Thanks

            Assignee:
            Paul Allen
            Reporter:
            sc1234 c
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: