From 50c20a3e97bf0f63c4c596cf09a21c2c5199e764 Mon Sep 17 00:00:00 2001 From: GSRN Date: Wed, 17 Sep 2025 00:28:39 +0200 Subject: [PATCH] chore: Update SonarQube command syntax in CI workflows for api-gateway ### Summary of Changes - Enclosed the SonarQube host URL and token parameters in quotes in the CI workflows for both `all-services.yml` and `api-gateway.yml` to ensure proper parsing of the values. ### Expected Results - Improved reliability of SonarQube integration in the CI process by preventing potential issues with parameter interpretation. --- .gitea/workflows/all-services.yml | 6 +++--- .gitea/workflows/api-gateway.yml | 4 ++-- .gitignore | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/all-services.yml b/.gitea/workflows/all-services.yml index 6707da1..31f42d8 100644 --- a/.gitea/workflows/all-services.yml +++ b/.gitea/workflows/all-services.yml @@ -120,10 +120,10 @@ jobs: working-directory: ./services/api-gateway run: | ./mvnw sonar:sonar \ - -Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \ - -Dsonar.login=${{ secrets.SONAR_TOKEN }} \ + -Dsonar.host.url="${{ secrets.SONAR_HOST_URL }}" \ + -Dsonar.login="${{ secrets.SONAR_TOKEN }}" \ -Dsonar.projectKey=labfusion-api-gateway \ - -Dsonar.projectName=LabFusion API Gateway + -Dsonar.projectName="LabFusion API Gateway" - name: Build application if: ${{ !inputs.run_tests_only && !inputs.run_sonar_only }} diff --git a/.gitea/workflows/api-gateway.yml b/.gitea/workflows/api-gateway.yml index 571abc4..8d54d44 100644 --- a/.gitea/workflows/api-gateway.yml +++ b/.gitea/workflows/api-gateway.yml @@ -154,8 +154,8 @@ jobs: ./mvnw clean verify sonar:sonar \ -Dsonar.projectKey=labfusion-api-gateway \ -Dsonar.projectName="LabFusion API Gateway" \ - -Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \ - -Dsonar.token=${{ secrets.SONAR_TOKEN }} + -Dsonar.host.url="${{ secrets.SONAR_HOST_URL }}" \ + -Dsonar.token="${{ secrets.SONAR_TOKEN }}" - name: Fail if no test reports found if: env.TEST_REPORTS_EXIST == 'false' diff --git a/.gitignore b/.gitignore index 41feb2f..a97386f 100644 --- a/.gitignore +++ b/.gitignore @@ -68,7 +68,7 @@ release.properties dependency-reduced-pom.xml buildNumber.properties .mvn/timing.properties -.mvn/wrapper/maven-wrapper.jar +**/maven-wrapper.jar # Python __pycache__/