diff --git a/gradle/sonar.gradle b/gradle/sonar.gradle index 78f0ce0a7e..85def3610b 100644 --- a/gradle/sonar.gradle +++ b/gradle/sonar.gradle @@ -1,7 +1,5 @@ apply plugin: "org.sonarqube" -ext.pullRequest = System.getenv()["CHANGE_ID"] ?: null - sonar { properties { property "sonar.host.url", project.getProperty("sonar.host.url") @@ -13,18 +11,6 @@ sonar { property "sonar.projectVersion", project.version property "sonar.language", "java" property "sonar.links.scm", "https://github.com/zowe/api-layer" - property "sonar.links.ci", System.getenv()["BUILD_URL"] ?: null - - if (pullRequest != null) { - property "sonar.pullrequest.key", System.getenv()["CHANGE_ID"] ?: null - property "sonar.pullrequest.branch", System.getenv()["CHANGE_BRANCH"] ?: null - property "sonar.pullrequest.base", System.getenv()["CHANGE_TARGET"] ?: null - property "sonar.github.pullRequest", pullRequest - property "sonar.github.repository", "zowe/api-layer" - property "sonar.github.oauth", project.hasProperty("sonar.github.oauth") ? project.getProperty("sonar.github.oauth") : null - } else { - property "sonar.branch.name", System.getenv()["BRANCH_NAME"] ?: null - } } }