no need of jacoco for other jdk btw jenkins ui do not display jdk label.. (#2673)
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
parent
f7df6b3326
commit
9e8743788d
|
@ -1,5 +1,6 @@
|
|||
#!groovy
|
||||
|
||||
// in case of change update method isMainBuild
|
||||
def jdks = ["jdk8","jdk9","jdk10","jdk11"]
|
||||
def oss = ["linux"]
|
||||
def builds = [:]
|
||||
|
@ -101,6 +102,9 @@ def getFullBuild(jdk, os) {
|
|||
// withMaven doesn't label..
|
||||
// Report failures in the jenkins UI
|
||||
junit testResults:'**/target/surefire-reports/TEST-*.xml,**/target/failsafe-reports/TEST-*.xml'
|
||||
consoleParsers = [[parserName: 'JavaDoc'],
|
||||
[parserName: 'JavaC']];
|
||||
if (isMainBuild( jdk )) {
|
||||
// Collect up the jacoco execution results
|
||||
def jacocoExcludes =
|
||||
// build tools
|
||||
|
@ -121,11 +125,14 @@ def getFullBuild(jdk, os) {
|
|||
execPattern : '**/target/jacoco.exec',
|
||||
classPattern : '**/target/classes',
|
||||
sourcePattern : '**/src/main/java'] )
|
||||
consoleParsers = [[parserName: 'Maven'],
|
||||
[parserName: 'JavaDoc'],
|
||||
[parserName: 'JavaC']];
|
||||
}
|
||||
|
||||
// Report on Maven and Javadoc warnings
|
||||
step( [$class : 'WarningsPublisher',
|
||||
consoleParsers: [[parserName: 'Maven'],
|
||||
[parserName: 'JavaDoc'],
|
||||
[parserName: 'JavaC']]] )
|
||||
consoleParsers: consoleParsers] )
|
||||
}
|
||||
if(isUnstable())
|
||||
{
|
||||
|
@ -161,6 +168,10 @@ def getFullBuild(jdk, os) {
|
|||
}
|
||||
}
|
||||
|
||||
def isMainBuild(jdk) {
|
||||
return jdk == "jdk8"
|
||||
}
|
||||
|
||||
|
||||
// True if this build is part of the "active" branches
|
||||
// for Jetty.
|
||||
|
|
Loading…
Reference in New Issue