Hi team,
I’m trying to upload a report to Sonar using ExternalIssuesReportPaths but its not working using Gradle plugin (other plugins it does work).
I’m using SQ 8.9 Enterprise.
Here you have some configurations:
Report file: out.json (10.2 KB)
plugins {
id 'java'
id 'jacoco'
id 'org.sonarqube' version '3.3'
}
allprojects {
version = '1.0.2'
group = 'org.sonarqube.sample'
repositories {
jcenter()
}
}
subprojects {
apply plugin: 'org.sonarqube'
sonarqube {
properties {
property 'sonar.coverage.jacoco.xmlReportPaths', "$projectDir.parentFile.path/build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml"
}
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
}
}
apply from: "$project.rootDir/sonar.gradle"
apply plugin: "org.sonarqube"
sonarqube {
properties {
// Insert other SonarQube properties here
property 'sonar.projectKey', 'test-gradle'
property 'sonar.name', 'test-gradle'
property 'sonar.branch.name', 'test/test-gradle'
property 'sonar.externalIssuesReportPaths', file("${rootProject.projectDir}/out.json")
}
}
Can you please help?
Thanks