Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56471

Construct view using full path even when only one depot path is given

XMLWordPrintable

      When your pipeline has a single filespec in the depotSource like this

       

      p4sync charset: 'none',

                      <snip>

                      source: depotSource('//depot/branch/...')

       

      Then the generated client view is

       //depot/branch/...   //P4_CLIENT/...

       

      This is request for that client view to be like it would be if you had two or more filespecs:

      //depot/branch/...   //P4_CLIENT/depot/branch/...

       

      Use case:   all existing "make" files assume a branch name in the path.

      Workaround:

      add a second depotPath to the list - e.g., source: depotSource('//depot/branch/...' '//depot/not/there')

       

      Code:

      In org.jenkinsci.plugins.p4.client.ViewMapHelper.java, allow an option to make multi = true regardless of views.size().

       

            Unassigned Unassigned
            joel_brown Joel Brown
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: