在Jenkins上,我们构建了一个基于scala的多模块项目。在Invoke top-level Maven targets
部分中,构建配置包含三个Build
操作:
// action 1: compiles the code
clean install -B -U -DskipTests=True
// action 2: run tests and generate coverage reports
scoverage:check site -Ptest.coverage.scala,test.coverage -B
// action 3: deploy code to nexus
deploy -B -DskipTests=true
构建的每个动作似乎发生了3次,耗时21分钟。是否可以将这些动作组合为一个动作并减少构建时间?