Use -f option to specify module to build.
@@ -4,9 +4,8 @@ node {
}
stage ('Build and Analysis') {
- dir ('plugin') {
withMaven(maven: 'mvn-default', mavenLocalRepo: '/var/data/m2repository', mavenOpts: '-Xmx768m -Xms512m') {
- sh 'mvn -V -e clean verify -Dmaven.test.failure.ignore -DskipITs'
+ sh 'mvn -ntp -V -e clean verify -f plugin/pom.xml -Dmaven.test.failure.ignore -DskipITs'
}
recordIssues tools: [java(), javaDoc()], aggregatingResults: 'true', id: 'java', name: 'Java'
@@ -20,4 +19,3 @@ node {
taskScanner(highTags:'FIXME', normalTags:'TODO', includePattern: '**/*.java', excludePattern: 'target/**/*,**/TaskScannerTest.java')]
}
}
-}
