add ci-reporting, errorprone profile and record static code analysis#3
add ci-reporting, errorprone profile and record static code analysis#3olamy wants to merge 29 commits into
Conversation
…xtraCmd to pass extra arguments to pass to mvn cli
| def failFast = false; | ||
| def siteJdks = params.containsKey('siteJdk') ? params.siteJdk : ['8','17'] | ||
| def siteMvn = params.containsKey('siteMvn') ? params.siteMvn : '3.6.x' | ||
| def siteJdks = params.containsKey('siteJdk') ? params.siteJdk : ['8'] |
There was a problem hiding this comment.
should be at minimum 11, there are difference for javadoc
There was a problem hiding this comment.
uhm not sure as javadoc can fail with jdk 1.8 and not 11. and the other way around :)
as we are 1.8 for most of the plugins etc maybe we need to ensure it works with this at least (as release folks might use 1.8 to build their release.
| // cmd += 'sonar:sonar' | ||
| } | ||
| if (Integer.parseInt(jdk) >= 11 && !taskContext['ciReportingRunned']) { | ||
| cmd += "-Pci-reporting -Perrorprone" |
There was a problem hiding this comment.
ci-reporting , errorprone are is some new profiles, I didn't see those before
There was a problem hiding this comment.
test branch ci-reporting with maven-compiler-plugin
| recordIssues id: "${os}-jdk${jdk}", name: "Static Analysis", aggregatingResults: true, enabledForFailure: true, tools: [mavenConsole(), java(), checkStyle(), spotBugs(), pmdParser(), errorProne()] | ||
| jacoco inclusionPattern: '**/org/apache/maven/**/*.class', | ||
| exclusionPattern: '', | ||
| execPattern: '**/target/jacoco.exec', |
There was a problem hiding this comment.
jacoco-it.exec should also be included
There was a problem hiding this comment.
good point to include IT test in coverage.
I have setup this to be in the same file with apache/maven-compiler-plugin@7e83e0d and covered lines increased from build #16 here https://ci-maven.apache.org/job/Maven/job/maven-compiler-plugin-test-olamy/job/ci-reporting/
|
@olamy do You think it's still needed? |
do not maven.test.failure.ignore per default as we do not even recommend using it (https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#testFailureIgnore)