diff --git a/gradle/sonar.gradle b/gradle/sonar.gradle index e1f1fd8e54..b91e4a74d8 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,7 @@ 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 property "sonar.scanner.force-deprecated-java-version", true - 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 - } } }