-
Task
-
Resolution: Not A Defect
-
Critical
Hi,
I want to make jenkins pipeline job
to run whenever commit comes.
In checkout code, there's filter: [incremental(true)] feature like below.
checkout perforce( credential: 'p4', filter: [incremental(true)], populate: syncOnly(...), workspace: templateSpec(...) )
What is this for?
and there's polling build filters options in configuration page.
What is this for?
What is different with upper code ?
Many thanks,
Hi luckyhorang,
Yes if you check the Pipeline Syntax snippet generator that checkbox controls incremental (true):
This is described in:
https://www.perforce.com/manuals/jenkins/Content/P4Jenkins/chapter-polling-build-filters.html?Highlight=poll%20per
Polling per Change: A build is carried out for every change that is submitted. The polling event will only return the oldest
unbuilt change, resulting in incremental builds.
Therefore when enabled you should see:
As you can see for every change to be built the polling has to occur more frequently than the submits.
If you really want on demand builds for every changelist a 'change-submit' Perforce trigger that explicitly calls the Jenkins job URL passing the changelist as a parameter is the recommended mechanism.