I’m encountering an issue where SonarQube analysis is not working in my Jenkins pipeline. MY project is using Java 21 and Quarkus 3.8.3.
I’m using these configurations on sonar-project.properties
sonar.jdbc.dialect=mssql
sonar.projectKey=java-project
sonar.projectName=java-project
sonar.projectVersion=3.1.2
sonar.sources=src
sonar.language=java
sonar.binaries=build/classes
sonar.tests=junit
sonar.dynamicAnalysis=reuseReports
sonar.junit.reportsPath=build/test-reports
sonar.java.coveragePlugin=jacoco
sonar.jacoco.reportPath=build/test-reports/jacoco.exec
I activated the debug mode in Jenkins and found that the sonar-project.properties file is being deleted during the build process:
+ rm -rf /home/jenkins/agent/workspace/DEV/Java/java-project/sonar-project.properties
I tried to add the properties above, but still not work.