-
Bug
-
Resolution: Fixed
-
Blocker
-
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.