Your case is a little more complicated than the Jenkins Git plugin can handle directly, but I think you may be able to implement what you want with "included regions" and with a separate "job creator" job that creates (and deletes?) "worker jobs" based on the directory structure of your source code.
I think you want a "worker job" per project, and each worker job should only run if there are changes in its associated directory. You could try excluding everything, then only including exactly the subdirectory of that project ("Polling ignores commits in certain paths" added to Git plugin configuration for the job). If you also want new jobs created when a new project is added, you would probably have a "job creator" job which polls the entire repository and adds or removes Jenkins jobs as necessary to keep the number of jobs and their inclusions synchronized with your source code. Mark Waite On Tue, Dec 17, 2013 at 12:25 PM, Yves Schumann <starwarsfanl...@gmail.com>wrote: > Hi > > I need to setup a lot of jenkins jobs, which should be triggered if > something changed on certain folders on a git repository. Let's say there > ist the following structure: > > repo > - projectA > - ... > - projectB > - ... > - ... > > > So for this example there will be two jenkins jobs, one for projectA and > one for projectB and each of these jobs should be start if something is > pushed into the corresponding folder. So if I push to repo/projectA, only > this job should start. Additionally the amount of these folders is > undefined, so it is not an option to configure the excludes by hand because > if another folder is added, lets say projectFoo, the existing jobs must > work as before. > > Any ideas how to solve this? > > Kind regards, > Yves > > -- > 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 jenkinsci-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.