[JIRA] (JENKINS-50013) Provide better polling filter debugging

7 views
Skip to first unread message

kwirth@perforce.com (JIRA)

unread,
Mar 8, 2018, 5:56:03 AM3/8/18
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
 
Jenkins / Bug JENKINS-50013
Provide better polling filter debugging
Change By: Karl Wirth
Labels: P4_VERIFY
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

kwirth@perforce.com (JIRA)

unread,
Mar 8, 2018, 5:56:03 AM3/8/18
to jenkinsc...@googlegroups.com
Karl Wirth created an issue
Issue Type: Bug Bug
Assignee: Unassigned
Components: p4-plugin
Created: 2018-03-08 10:55
Environment: 1.8.5
Priority: Minor Minor
Reporter: Karl Wirth

At the moment there is no way to diagnose polling filter problems. Would be great if we could add some debug lines to allow us to see what filters have caused polling to ignore files in the build.

wbasu@perforce.com (JIRA)

unread,
Apr 25, 2018, 12:20:02 PM4/25/18
to jenkinsc...@googlegroups.com
W Basu updated an issue
 
Jenkins / Improvement JENKINS-50013
Change By: W Basu
Issue Type: Bug Improvement

wbasu@perforce.com (JIRA)

unread,
Apr 25, 2018, 12:20:02 PM4/25/18
to jenkinsc...@googlegroups.com
W Basu updated an issue
Change By: W Basu
Labels: P4_VERIFY P4_C

ericb@piap.com (JIRA)

unread,
May 29, 2019, 2:20:02 PM5/29/19
to jenkinsc...@googlegroups.com
Eric Blom commented on Improvement JENKINS-50013
 
Re: Provide better polling filter debugging

Is it possible to add a polling filter for a pipeline job?

I'm converting freestyle jobs to pipelines and I'm struggling to figure out how to migrate our polling filters. I've searched the documentation, asked on IRC, and then found this ticket. Based on this title of this ticket I'm hopeful that polling filters are supported in pipelines they just are documented.

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

kwirth@perforce.com (JIRA)

unread,
Jun 3, 2019, 7:43:01 AM6/3/19
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
 
Jenkins / Improvement JENKINS-50013
Change By: Karl Wirth
Attachment: image-2019-06-03-12-42-27-403.png

kwirth@perforce.com (JIRA)

unread,
Jun 3, 2019, 7:44:02 AM6/3/19
to jenkinsc...@googlegroups.com
Karl Wirth commented on Improvement JENKINS-50013
 
Re: Provide better polling filter debugging

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}/...')))

 

ericb@piap.com (JIRA)

unread,
Jun 3, 2019, 7:25:01 PM6/3/19
to jenkinsc...@googlegroups.com

Thank you for the reply. Through a circuitous path I finally got my filter working. I think the key learning was don't use p4sync. Use checkout from the snippet generator and select Perforce. I tried using the Pipeline script from SCM, as you mentioned, but, didn't get it to work. I must have had something configured incorrectly, but, I never figured out what. As this ticket suggests there isn't much output to help debug problems.

kwirth@perforce.com (JIRA)

unread,
Jun 6, 2019, 6:26:03 AM6/6/19
to jenkinsc...@googlegroups.com

Hi Eric Blom - Great that you got it working and thanks for the feedback. I'll make sure the developers see it.

Reply all
Reply to author
Forward
0 new messages