Hello, I'm using Jenkins 1.464. I have a Bitbucket repository that contains several top-level directories, each of which represent a single Jenkins job. I'm using the Git plugin and its "Included Regions" attribute to detect just those changes that are relevant to each job. [1] The Bitbucket repo has a Service to hit the /git/notifyCommit?url=... on the Jenkins server. Polling is checked for each project, but there's no schedule set. [2] Hitting that URL from the shell gets a response listing all the expected jobs, so this certainly seems to be set up correctly.
The problem is that when I push changes that span multiple projects in the repo, only one of the projects is being built. If it's the wrong project with respect to dependency order, the build breaks. This seems to happen regularly, but I don't know whether it's deterministic. It's certainly breaking the build often enough to be very annoying. Has anyone seen this before? I suppose a solution might be to set up separate Bitbucket "Jenkins Services", one for each project, but that's more typing than just hitting the one notifyCommit URL. [1] As an aside, this seems like an impedance mismatch to me (special attributes, cloning the same repo multiple times for the separate jobs), and I am considering breaking the repo up into multiple single-project repos. This would have the advantage of solving the problem I describe above. [2] All as described here: http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/ -- Paul.