| Hi Eric Blom, Yes if you are using 'Pipeline script from SCM' there is a 'Polling build filters' section after the 'Parrallel Sync' section.  If you want the filter in your Jenkinsfile you can go to the snippet generator ('JENKINS_URL/pipeline-syntax/') then choose 'checkout' and set SCM to 'Perforce Software' you can build up your manual checkout step. The Polling build filters are at the end of the dialog. Below is an example that I generated. Note the 'filter' section:
checkout perforce(credential: 'JenkinsMaster',
filter: [pathFilter('//depot/ignore_me/...')],
populate: autoClean(delete: true, modtime: false,
parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'],
pin: '', quiet: true, replace: true, tidy: false),
workspace: manualSpec(charset: 'none', cleanup: false, name: 'jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}',
pinHost: false, spec: clientSpec(allwrite: false, backup: true, changeView: '', clobber: true, compress: false, line: 'LOCAL', locked: false, modtime: false, rmdir: false, serverID: '', streamName: '', type: 'WRITABLE', view: '//depot/project1/... //jenkins-${NODE_NAME}-${JOB_NAME}-${EXECUTOR_NUMBER}/...')))
|