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

p4 plugin doesn't add '/...' to older p4sync calls.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • p4-plugin

      Updating our p4 plugin from 1.8.12 to 1.9.6, we find that jobs using the older p4sync, where the trailing '/...' was optional, fails to write out useful/working p4 clients.

      For p4sync call:

       p4sync(charset: 'none', credential: credential, depotPath: '//depot/svrtools/mainline/sme-tools/jenkins_test',
                 format: user + '-${NODE_NAME}-${JOB_NAME}', populate: [
                   $class: 'AutoCleanImpl', delete: true, modtime: false,
                   parallel: [
                     enable: false, minbytes: '1024', minfiles: '1',
                     path: '/usr/local/bin/p4', threads: '4'
                   ],
                   pin: '', quiet: true, replace: true
                 ]
                )
      

      We get in the resultant client:

      View:
      	//depot/svrtools/mainline/sme-tools/jenkins_test //build-repo01-jenkins-test/jenkins_test
      

      Which then fails to sync/checkout anything.

      The log output is attached as 'a.txt'

      Behaviour of this seems changed in :

      https://swarm.workshop.perforce.com/changes/24767

      If we revert plugin to older, and then delete generated client, we see the difference in c.txt output.

      We also see our view has changed :

      View:
      	//d-alviso/svrtools/mainline/sme-tools/jenkins_test/... //build-repo01-jenkins-test/...
      

        1. a.txt
          4 kB
        2. c.txt
          4 kB

            Unassigned Unassigned
            mhall4 Matthew Hall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: