-
Notifications
You must be signed in to change notification settings - Fork 0
Example to run sonar analyzer
Michael Mairegger edited this page Sep 9, 2015
·
1 revision
To create a project on SonarQube open the Provisioning page SonarQube and create a new project with the realtimebus key and master branch.
Create following two files:
Save following file under config/realtimebus.json
{
"GitHubRepository": "realtimebus",
"GitHubRepositoryOwner": "tis-innovation-park",
"RescanFrequency": "00:05:00",
"AnalysationBehavior": "Tags"
}Save following file under config/realtimebus.properties
sonar.projectKey= realtimebus:master
sonar.projectName=realtimebusTo run provide following arguments
sonar-analyzer.exe --analyze --fetch --token=GITHUBTOKEN --config="path-to-realtimebus.json"or
sonar-analyzer.exe --analyze --fetch --token=GITHUBTOKENBy using the second command you have to ensure that realtimebus.json and realtimebus.properties is located in the config subdirectory. The subdirectory must be on the same level as sonar-analyzer.exe.