Hi Alisdair Robertson, Thanks for highlighting this. I was easily able to reproduce this so will pass to the developers. Reproduction steps Jenkins 2.176.1 Create a Jenkins pipeline job and put the following code in the Pipeline script section:
node() {
node {
def scmVars = p4sync charset: 'none', credential: 'JenkinsMaster', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: false, replace: true, tidy: false), source: streamSource('//streams/main')
echo "Result was ${scmVars}"
}
}
On p4-plugin 1.10.4 the result is:
[Pipeline] echo
Result was [HUDSON_CHANGELOG_FILE:/var/lib/jenkins/jobs/PipelineEditorNode/builds/8/changelog0.xml, P4_CHANGELIST:2090, P4_CLIENT:jenkins-master-PipelineEditorNode-2, P4_PORT:perforce:1666, P4_ROOT:/var/lib/jenkins/workspace/PipelineEditorNode%402, P4_TICKET:6B786DA4A0A6298A60822A383758D0C4, P4_USER:super]
On p4-plugin 1.10.6 the result set is empty:
[Pipeline] echo
Result was [:]
|