Skip to content

Commit

Permalink
fix: sonar analysis for v2 (#3800)
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Salac <[email protected]>
  • Loading branch information
richard-salac authored Sep 27, 2024
1 parent 048f726 commit d4f6145
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions gradle/sonar.gradle
Original file line number Diff line number Diff line change
@@ -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')
Expand All @@ -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
}
}
}

Expand Down

0 comments on commit d4f6145

Please sign in to comment.