Closed zunera-aion closed 8 months ago
If you're using the Sonarqube docker image rather than the one with the plugin embedded then you'll need to ensure you're setting SONAR_WEB_JAVAADDITIONALOPTS
and SONAR_CE_JAVAADDITIONALOPTS
in the container environment, e.g.
...
services:
sonarqube:
image: sonarqube:10.3-community
depends_on:
- db
environment:
SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar
SONAR_JDBC_USERNAME: sonar
SONAR_JDBC_PASSWORD: sonar
SONAR_WEB_JAVAADDITIONALOPTS: "-javaagent:/opt/sonarqube/lib/common/sonarqube-community-branch-plugin-1.18.0.jar=web"
SONAR_CE_JAVAADDITIONALOPTS: "-javaagent:/opt/sonarqube/lib/common/sonarqube-community-branch-plugin-1.18.0.jar=ce"
volumes:
- sonarqube1_data:/opt/sonarqube/data
- sonarqube1_extensions:/opt/sonarqube/extensions
- sonarqube1_logs:/opt/sonarqube/logs
- /root/sonarqube/plugins/sonarqube-community-branch-plugin-1.18.0.jar:/opt/sonarqube/lib/common/sonarqube-community-branch-plugin-1.18.0.jar
...
Thanks the issue is resolved now.
Describe the bug Unable to upload report from Azure DevOps to the SonarQube. SonarAnalyze@5 fails at report upload.
To Reproduce This is the docker-compose file I used
Expected behavior The reports should be uploaded successfully.
Screenshots
Software Versions
Additional context I have tried adding branch name to sonar additional properties I have also tried using the Default branch name set to my branch name in SQ settings.