I am pondering moving some parts of the system I work on to a monorepo. The structure I have now is something like:
+- Project 1 +- pom.xml | +- Jenkinsfile | +- Dockerfile +- Project 2 +- pom.xml | +- Jenkinsfile | +- Dockerfile ... +- pom.xml (parent) +- Jenkinsfile What I want to achieve is to trigger another Jenkins pipeline based on the changeset from the top-level one based on the change set contents.
when { changeset "*/Project1/**"} ... All the children pipelines are just calling a pipeline library with some parameters - this works pretty well and I would like to keep the code.
What options do I have?