How do you split mvn reactor into groups of module build by different jenkins jobs?

324 views Asked by At

To make the most out of a build server's ability to run jobs in parallel

a) split maven lifecycle phases across bamboo stages (Build -> Test -> Deploy) b) split each stage into parallel jobs

I know how to split phases in segments: BUILD: mvn clean deploy -DskipTests TESTS: mvn surefire:test failsafe:test

I don't know how to split across jobs where modules which could be run in parallel are processed by different jenkins jobs. I'd like something that allowed me to run maven with multiple threads to determine which projects should be in each thread or job so I could construct the command line for each thread.

Desired

  • mvn -T4... to generate lists of modules to build for each thread
  • Provide list of modules as "-pl group:art1 -pl group:art2 ..." to each parallel build job
  • Execute jobs in parallel be they builds or tests

Do you know of a plugin or cmdline option for this?

Thanks

Peter

0

There are 0 answers