Jenkins triggers with git sparse checkout Jenkins triggers with git sparse checkout jenkins jenkins

Jenkins triggers with git sparse checkout


There is an option under the Additional Behaviours dropdown list of the Jenkins Git Plugin called Polling ignores commit in certain paths. There you can specify included and excluded paths to control the behavior of SCM polling.

From the Plugin's documentation:

Each inclusion uses regular expression pattern matching, and must be separated by a new line.An empty list implies that everything is included.    myapp/src/main/web/.*\.html    myapp/src/main/web/.*\.jpeg    myapp/src/main/web/.*\.gifThe example above illustrates that a build will only occur, if html/jpeg/gif files have been committed to the SCM.Exclusions take precedence over inclusions, if there is an overlap between included and excluded regions.