Reputation: 1438
I am using maven goal sonar:sonar to analyze all the maven projects in my jenkins using sonarqube4.2 and running the goal sonar:sonar as a build step.
I have a situation where couple of teams have projects with only UI code in it and does not follow maven structure.
Src folder does not exist. Could someone tell me how to specify the source folder in this case since sonar:sonar would only work for maven projects and I dont have a sonar runner in place.
Thanks in advance.
Regards, Upen
Upvotes: 0
Views: 1195
Reputation: 26843
You just have to use the SonarQube Runner build step instead of the SonarQube Maven PostJob. With this build step, you have to specify the properties by yourself so you can put whatever you want. For instance:
sonar.projectKey=my:project
sonar.projectName=My project
sonar.projectVersion=1.0
sonar.sources=.
sonar.exclusions=build/**/*
You can find more on the "Adding SonarQube Runner" documentation page of the SonarQube Jenkins plugin.
Upvotes: 2