Configuration:
1. Configure environment variable Sonar_runner_home
2. Configure path: Increase%sonar_runner_home%\bin
3. Create sonar-project.properties at the root of your local project
Sonar-project.properties:
Sonar.projectkey=keyinsonartasklist //eg:sonartask_1sonar.projectname=nameinsonartasklist//eg:sonarTask_ 1SONAR.PROJECTVERSION=1.0-SNAPSHOTSONAR.SOURCES=SRC//relative path, path of source relative to Sonar-project.properties, // Because of the configuration sonar.modules, SRC can be written, if no sonar.modules is configured, //needs to be written Project1/src,project2/srcsonar.modules=project1, project2//module is a project folder that is similar to sonar-project.properties sonar.language= if it is Java code, fill in Java, and if it is groovy code, Fill in Grvysonar.sourceencoding=utf-8//According to the project needs, such as GBK
Sonar-runner.bat:
@echo offcd/d%~dp0sonar-runner
Sonar Qube QA