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
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:
@@ -120,10 +120,10 @@ jobs:
|
|||||||
working-directory: ./services/api-gateway
|
working-directory: ./services/api-gateway
|
||||||
run: |
|
run: |
|
||||||
./mvnw sonar:sonar \
|
./mvnw sonar:sonar \
|
||||||
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \
|
-Dsonar.host.url="${{ secrets.SONAR_HOST_URL }}" \
|
||||||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
|
-Dsonar.login="${{ secrets.SONAR_TOKEN }}" \
|
||||||
-Dsonar.projectKey=labfusion-api-gateway \
|
-Dsonar.projectKey=labfusion-api-gateway \
|
||||||
-Dsonar.projectName=LabFusion API Gateway
|
-Dsonar.projectName="LabFusion API Gateway"
|
||||||
|
|
||||||
- name: Build application
|
- name: Build application
|
||||||
if: ${{ !inputs.run_tests_only && !inputs.run_sonar_only }}
|
if: ${{ !inputs.run_tests_only && !inputs.run_sonar_only }}
|
||||||
|
|||||||
@@ -154,8 +154,8 @@ jobs:
|
|||||||
./mvnw clean verify sonar:sonar \
|
./mvnw clean verify sonar:sonar \
|
||||||
-Dsonar.projectKey=labfusion-api-gateway \
|
-Dsonar.projectKey=labfusion-api-gateway \
|
||||||
-Dsonar.projectName="LabFusion API Gateway" \
|
-Dsonar.projectName="LabFusion API Gateway" \
|
||||||
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \
|
-Dsonar.host.url="${{ secrets.SONAR_HOST_URL }}" \
|
||||||
-Dsonar.token=${{ secrets.SONAR_TOKEN }}
|
-Dsonar.token="${{ secrets.SONAR_TOKEN }}"
|
||||||
|
|
||||||
- name: Fail if no test reports found
|
- name: Fail if no test reports found
|
||||||
if: env.TEST_REPORTS_EXIST == 'false'
|
if: env.TEST_REPORTS_EXIST == 'false'
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -68,7 +68,7 @@ release.properties
|
|||||||
dependency-reduced-pom.xml
|
dependency-reduced-pom.xml
|
||||||
buildNumber.properties
|
buildNumber.properties
|
||||||
.mvn/timing.properties
|
.mvn/timing.properties
|
||||||
.mvn/wrapper/maven-wrapper.jar
|
**/maven-wrapper.jar
|
||||||
|
|
||||||
# Python
|
# Python
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|||||||
Reference in New Issue
Block a user