record maven invoker result only once

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
olivier lamy 2018-10-09 14:37:52 +10:00
parent 5d761ec7d2
commit 94d1e26930
1 changed files with 4 additions and 2 deletions

6
Jenkinsfile vendored
View File

@ -31,7 +31,6 @@ def getFullBuild(jdk, os, mainJdk) {
jdk: "$jdk",
publisherStrategy: 'EXPLICIT',
globalMavenSettingsConfig: settingsName,
options: [invokerPublisher()],
mavenOpts: mavenOpts,
mavenLocalRepo: localRepo) {
// Compile only
@ -71,12 +70,15 @@ def getFullBuild(jdk, os, mainJdk) {
sourcePattern: '**/src/main/java'
consoleParsers = [[parserName: 'Maven'],
[parserName: 'JavaDoc'],
[parserName: 'JavaC']];
[parserName: 'JavaC']]
step([$class: 'MavenInvokerRecorder'])
}
// Report on Maven and Javadoc warnings
step([$class : 'WarningsPublisher',
consoleParsers: consoleParsers])
}
}
}