chore: Update SonarQube command syntax in CI workflows for api-gateway
Some checks failed
Docker Build and Push / build-and-push (push) Failing after 35s
Integration Tests / integration-tests (push) Failing after 36s
Integration Tests / performance-tests (push) Has been skipped
API Gateway (Java Spring Boot) / test (17) (push) Failing after 2m4s
API Gateway (Java Spring Boot) / test (21) (push) Failing after 2m17s
API Gateway (Java Spring Boot) / build (push) Has been skipped
API Gateway (Java Spring Boot) / security (push) Has been skipped

### 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.
This commit is contained in:
GSRN
2025-09-17 00:28:39 +02:00
parent bdfcd6e149
commit 50c20a3e97
3 changed files with 6 additions and 6 deletions

View File

@@ -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 }}

View File

@@ -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'