Hi Team,
I am not able to get the scan results in sonarqube ui.Please see the details below.
sonarqube version - 10.4.1
CI- Github actions
source code - java apache ant
so below is the configuration i have in my source code for enabling sonarqube scan.
I am using sonarscanner cli for code scanning.my source code is in java and using apache ant as a build tool.
my project structure looks like this
-.github/workflow file
-.3d
-build-tools
-doc
-keygen
-lib
|
-3dlib
-bin
-lib
-*.jar (jar files)
-lib1
|
-*.jar (jar files)
-test
(empty folder)
-src
-.gitignore
-build.xml
As part of sonar configuration in by source code i added sonarscan step as below in my workflow file
- name: SonarQube Scan
uses: devops/sonarqube-scan-action@master
with:
projectBaseDir: ./
# debug: true
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_ENDPOINT }}
and created sonar-project.properties as below
sonar.projectKey=project key
sonar.projectName=project name
sonar.projectVersion= not provided
sonar.sources=src
sonar.tests=./test
sonar.java.binaries=./
sonar.dynamicAnalysis=reuseReports
sonar.java.coveragePlugin=jacoco
sonar.sourceEncoding=UTF-8
sonar.verbose=true
sonar.core.codeCoveragePlugin=jacoco
sonar.coverage.jacoco.xmlReportPaths=./**/jacoco.xml
sonar.java.libraries=**/*.jar
sonar.dependencyCheck.htmlReportPath=target/dependency-check-report.html
sonar.dependencyCheck.jsonReportPath=target/dependency-check-report.json
sonar.dependencyCheck.reportPath=target/dependency-check-report.xml
when i run my pipeline it created a same project in sonarqube but still seeing no results under the project in sonarqube ui.
github action log.txt (17.6 KB)
above is the log of my github action workflow for sonarqube scan step.
Please help me to make this scan work and assist me how can i scan java apache ant project using sonarscanner cli, i dont find any detailed steps in sonarqube documentation.