Skip to content

Commit

Permalink
chore: remove obsolete jenkins configuration for sonar (#3803)
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 d6cc2ef commit a8ae43c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 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,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
}
}
}

Expand Down

0 comments on commit a8ae43c

Please sign in to comment.