To answer my own question: The poll does not care about your sparse checkout settings. But you can add an additional git option to achieve this:
*Polling ignores commits in certain paths* On 18 March 2015 at 13:26, Andrew Smith <[email protected]> wrote: > Hi > > I'm using Git Sparse Checkout (through the jenkins git plugin) to allow me > to checkout only 1 directory from a git repo. > > I am also using /git/notifyCommit to notify Jenkins of git changes and > allow automatic rebuilds when they occur. > > My problem is that I have repo1: > > repo1 > . > .. > dir_a/ > dir_b/ > > And jenkins project a building only dir_a, project b building only dir_b > (thought sparse checkout). > > But If I make changes to dir_b, and send a notifyCommit to jenkins my Git > Polling Log for project a says "Changes found" and project a is rebuilt > (even though none of the files have changed). > > Is there a way to force the git "has it changed" mechanism to consider the > git sparse checkout option? > > Thanks > -- > Andy Smith > http://andrewmichaelsmith.com | @bingleybeep > -- Andy Smith http://andrewmichaelsmith.com | @bingleybeep -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALfgT%3Dph133J5iRDMk1edO8QO1JXgXAza5UR9kvJ%2BEYKY8dnaw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
