Skip to content

Commit 9133254

Browse files
committed
chore: sonarcloud branch 설정 변경
1 parent 5081136 commit 9133254

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ jobs:
4242
DB_PASSWORD: ${{ secrets.DB_PASSWORD }} # Database password
4343
run: |
4444
chmod +x ./gradlew
45-
./gradlew build jacocoTestReport sonar --info
45+
./gradlew build jacocoTestReport sonar --info -Dsonar.branch.name=${{ github.ref_name }}

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,6 @@ sonar {
7474
property("sonar.host.url", "https://sonarcloud.io")
7575
property("sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml")
7676
property("sonar.java.checkstyle.reportPaths", "build/reports/checkstyle/main.xml")
77+
property("sonar.branch.name", System.getenv("BRANCH_NAME") ?: "main")
7778
}
7879
}

0 commit comments

Comments
 (0)