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

'Preview check Only' populate option is syncing files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • p4-plugin
    • None
    • Jenkins LTS v2.60.3
      p4-plugin 1.7.4 / 1.7.5

      Firstly, in 1.7.3 the snippet generator, for the checkout step, writes the following code when asked to generate a 'Preview check Only' sync:

      checkout changelog: false, poll: false, scm: [$class: 'PerforceScm', credential: '<credentials>',
          populate: [$class: 'CheckOnlyImpl', force: false, have: false, modtime: false, quiet: true],
          workspace: [$class: 'TemplateWorkspaceImpl', charset: 'none', format: "<format>",
              pinHost: true, templateName: "<template>"]]
      

      For the same settings, in 1.7.4:

      checkout changelog: false, poll: false, scm: perforce(credential: '<credentials>',
          populate: previewOnly(force: false, have: false, modtime: false, quiet: true),
          workspace: templateSpec(charset: 'none', format: "<format>",
              pinHost: true, templateName: "<template>"))
      

      In either case, both lines of code result in files being synced to the workspace in 1.7.4

      (changelog and poll set to false in the generator for the most verbose version of the code, I'm using them both as true in the specific job I took this code from)

      To be explicit, it's dropped the '-k' from the sync commands it creates.

            p4paul Paul Allen
            philmcardlecg Phil McArdle
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: