I have a freestyle project with such config:
Repository URL: firstname.lastname@example.org:my-repo
Branches to build: **
Build Triggers > Poll SCM is enabled
When I send a notification on http://jenkins/git/notifyCommit - everything works as expected:
When I change branch specifier to a simple regex :.* - everything still works, but when I use end of line sign like :.+foo$ the behavior changes:
Instead of staring new build Jenkins schedules polling of the project and if there are no new commits there will be no build scheduled. I think it's a bit strange that different regex-s lead to different building algorithms. IMHO algorithms should be the same for all regex-s.
I can try to fix it if someone describe expected behavior with Parametrized builds. Is it possible to use parameters with regex branch spec? Should git-plugin check if branch spec is a regex before searching for parameters?