diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7b85c7..9ed74c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,6 +96,5 @@ jobs: # (Optional) Add steps for generating coverage report and other post-test tasks - name: SonarCloud Scan env: - CI_BRANCH: ${{ github.ref_name }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: ./gradlew sonarqube -Dsonar.login=$SONAR_TOKEN \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index f124707..f1016f9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -42,7 +42,6 @@ sonar { property("sonar.projectKey","ADPRO-C11_snackscription-review") property("sonar.organization", "adpro-c11") property("sonar.host.url", "https://sonarcloud.io") - property("sonar.branch.name", System.getenv("CI_BRANCH") ?: 'main') } }