fix: Update SonarQube integration in CI workflows to use pysonar
Some checks failed
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 27s
Docker Build and Push / build-and-push (push) Failing after 41s
Integration Tests / integration-tests (push) Failing after 52s
Integration Tests / performance-tests (push) Has been skipped
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 1m22s
Service Adapters (Python FastAPI) / test (3.1) (push) Failing after 13s
LabFusion CI/CD Pipeline / api-docs (push) Successful in 1m47s
Service Adapters (Python FastAPI) / test (3.11) (push) Failing after 25s
LabFusion CI/CD Pipeline / frontend (push) Failing after 1m52s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
Service Adapters (Python FastAPI) / test (3.12) (push) Failing after 28s
Service Adapters (Python FastAPI) / test (3.9) (push) Failing after 28s
Service Adapters (Python FastAPI) / build (push) Has been skipped
Some checks failed
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 27s
Docker Build and Push / build-and-push (push) Failing after 41s
Integration Tests / integration-tests (push) Failing after 52s
Integration Tests / performance-tests (push) Has been skipped
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 1m22s
Service Adapters (Python FastAPI) / test (3.1) (push) Failing after 13s
LabFusion CI/CD Pipeline / api-docs (push) Successful in 1m47s
Service Adapters (Python FastAPI) / test (3.11) (push) Failing after 25s
LabFusion CI/CD Pipeline / frontend (push) Failing after 1m52s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
Service Adapters (Python FastAPI) / test (3.12) (push) Failing after 28s
Service Adapters (Python FastAPI) / test (3.9) (push) Failing after 28s
Service Adapters (Python FastAPI) / build (push) Has been skipped
### Summary of Changes - Replaced `sonar-scanner` with `pysonar` for SonarQube analysis in CI workflows for Service Adapters. - Updated installation instructions and command parameters for consistency across workflows. ### Expected Results - Improved compatibility and maintainability of SonarQube integration in CI configurations.
This commit is contained in:
@@ -115,15 +115,15 @@ jobs:
|
||||
- name: Send results to SonarQube
|
||||
run: |
|
||||
echo "Sending Service Adapters results to SonarQube..."
|
||||
# Install SonarQube Scanner for Python
|
||||
# Install pysonar for SonarQube analysis
|
||||
pip install pysonar
|
||||
|
||||
# Run SonarQube analysis
|
||||
pysonar \
|
||||
pysonar \
|
||||
--sonar-host-url=${{ secrets.SONAR_HOST_URL }} \
|
||||
--sonar-token=${{ secrets.SONAR_TOKEN }} \
|
||||
--sonar-project-key=labfusion-service-adapters \
|
||||
--sonar-project-name='LabFusion Service Adapters'
|
||||
--sonar-project-name="LabFusion Service Adapters"
|
||||
|
||||
- name: Build Docker image (test only)
|
||||
run: docker build -t service-adapters:test .
|
||||
|
||||
Reference in New Issue
Block a user