Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sonar analysis for v2 #3800

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading