My developers team want to use a single GIT repo to store several microservices as it is more convenient to only synchronise one repo.
Unfortunately, all Jenkins pipeline litterature i've found always show a Jenkinsfile at the root of a repo holding only one microservice.
If we consider the following git repository structure:
MyProject
¦-> Microservice1
¦ ¦-> src/main/java/...
¦ ¦-> src/main/docker/Dockerfile
¦
¦-> Microservice2 (etc.)
¦-> Microservice3 (etc.)
¦
...
¦-> Jenkinsfile
How can I detect inside the jenkinsfile which Microservices projects were updated in order to execute de pipeline on those projects only?