We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5081136 commit 9133254Copy full SHA for 9133254
.github/workflows/build.yml
@@ -42,4 +42,4 @@ jobs:
42
DB_PASSWORD: ${{ secrets.DB_PASSWORD }} # Database password
43
run: |
44
chmod +x ./gradlew
45
- ./gradlew build jacocoTestReport sonar --info
+ ./gradlew build jacocoTestReport sonar --info -Dsonar.branch.name=${{ github.ref_name }}
build.gradle.kts
@@ -74,5 +74,6 @@ sonar {
74
property("sonar.host.url", "https://sonarcloud.io")
75
property("sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml")
76
property("sonar.java.checkstyle.reportPaths", "build/reports/checkstyle/main.xml")
77
+ property("sonar.branch.name", System.getenv("BRANCH_NAME") ?: "main")
78
}
79
0 commit comments