Move reference build step before coverage report
@@ -83,11 +83,11 @@ for (i = 0; i < buildTypes.size(); i++) {
error 'There were test failures; halting early'
}
if (buildType == 'Linux' && jdk == jdks[0]) {
- publishCoverage calculateDiffForChangeRequests: true, adapters: [jacocoAdapter('coverage/target/site/jacoco-aggregate/jacoco.xml')]
def folders = env.JOB_NAME.split('/')
if (folders.length > 1) {
discoverGitReferenceBuild(scm: folders[1])
}
+ publishCoverage calculateDiffForChangeRequests: true, adapters: [jacocoAdapter('coverage/target/site/jacoco-aggregate/jacoco.xml')]
echo "Recording static analysis results for '${buildType}'"
recordIssues(
