Build only affected modules in Jenkins / Maven
I know this is an old question but if anyone is still looking for an answer, I created a Jenkinsfile for a Multi Branch Pipeline which builds affected modules only for a maven multi-module project.
Jenkinsfile