I'm using Maven 3.5, Git, and Jenkins 2.138.1. I have a Maven Jenkins job set up for my multi-module Maven project. Normally, if I want to build just a single module in Maven and whatever it affects, I can run
mvn install -pl myModule -am
from a command line. What I would like to do is configure my Jenkins job to only build the affected Maven modules and their dependencies if someone checks in code for a specific module, thus speeding up my build. How can I configure this in Jenkins?