I have a repository in GitHub. This repository has a Jenkinsfile at the root which is the app project. There are 2 more folders / directories, one for Config project and one for Database project. Each has a jenkins file inside it.
We have 3 Multibranch Jenkins Pipelines, since there are 3 different modules / projects. But all of them belong to the same GitHub repository. The challenge is that, if the DB developer modifies any file inside the DB directory, other jobs are also triggered (App and Config). If a file is changed in the Config directory, it triggers App and DB jobs, probably because all are inside the same repository.
Is there a way to ensure that any change in DB directory will only trigger the DB Multibranch job and not the App and Config and vice versa? Basically, I am looking for an option to exclude DB and Config directory from triggering App Build and so on. Please help.